]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apignusocialversion.php
ShowstreamAction fixes so it's not as horrible
[quix0rs-gnu-social.git] / actions / apignusocialversion.php
index e50e2d59da6f07c7313735c40285bef0895b0874..a56630c666f5d33e6531f66e4f3c7cabe8fba0b7 100644 (file)
@@ -52,22 +52,17 @@ class ApiGNUsocialVersionAction extends ApiPrivateAuthAction
         switch ($this->format) {
         case 'xml':
             $this->initDocument('xml');
-            $this->element('version', null, STATUSNET_VERSION);
+            $this->element('version', null, GNUSOCIAL_VERSION);
             $this->endDocument('xml');
             break;
         case 'json':
             $this->initDocument('json');
-            print '"'.STATUSNET_VERSION.'"';
+            print '"'.GNUSOCIAL_VERSION.'"';
             $this->endDocument('json');
             break;
         default:
-            $this->clientError(
-                // TRANS: Client error displayed when coming across a non-supported API method.
-                _('API method not found.'),
-                404,
-                $this->format
-            );
-            break;
+            // TRANS: Client error displayed when coming across a non-supported API method.
+            $this->clientError(_('API method not found.'), 404);
         }
     }