For good measure; trip short error mode in earlier on ajax shownotice
This commit is contained in:
parent
90d35885ae
commit
34e7d8ddf2
@ -78,6 +78,9 @@ class ShownoticeAction extends OwnerDesignAction
|
|||||||
function prepare($args)
|
function prepare($args)
|
||||||
{
|
{
|
||||||
parent::prepare($args);
|
parent::prepare($args);
|
||||||
|
if ($this->boolean('ajax')) {
|
||||||
|
StatusNet::setApi(true);
|
||||||
|
}
|
||||||
|
|
||||||
$id = $this->arg('notice');
|
$id = $this->arg('notice');
|
||||||
|
|
||||||
@ -189,7 +192,6 @@ class ShownoticeAction extends OwnerDesignAction
|
|||||||
parent::handle($args);
|
parent::handle($args);
|
||||||
|
|
||||||
if ($this->boolean('ajax')) {
|
if ($this->boolean('ajax')) {
|
||||||
StatusNet::setApi(true);
|
|
||||||
$this->showAjax();
|
$this->showAjax();
|
||||||
} else {
|
} else {
|
||||||
if ($this->notice->is_local == Notice::REMOTE_OMB) {
|
if ($this->notice->is_local == Notice::REMOTE_OMB) {
|
||||||
|
Loading…
Reference in New Issue
Block a user