]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/newnotice.php
StatusNet class renamed GNUsocial
[quix0rs-gnu-social.git] / actions / newnotice.php
index 692ba765c8a4dd485b25abb0930e24c3a23b7f2d..f9b04cae3c3b29d325cb4797f2a87d782e437e11 100644 (file)
@@ -110,7 +110,7 @@ class NewnoticeAction extends FormAction
         $cmd = $inter->handle_command($user, $content);
 
         if ($cmd) {
-            if (StatusNet::isAjax()) {
+            if (GNUsocial::isAjax()) {
                 $cmd->execute(new AjaxWebChannel($this));
             } else {
                 $cmd->execute(new WebChannel($this));
@@ -195,7 +195,7 @@ class NewnoticeAction extends FormAction
 
         Event::handle('EndSaveNewNoticeWeb', array($this, $user, &$content_shortened, &$options));
 
-        if (!StatusNet::isAjax()) {
+        if (!GNUsocial::isAjax()) {
             $url = common_local_url('shownotice', array('notice' => $this->stored->id));
             common_redirect($url, 303);
         }