X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapignusocialversion.php;h=a56630c666f5d33e6531f66e4f3c7cabe8fba0b7;hb=6afa091dca980fcd856b781015ee57afa89c9339;hp=e50e2d59da6f07c7313735c40285bef0895b0874;hpb=9be368006c94ed17d4ff7bb573dbf1bf93b2272e;p=quix0rs-gnu-social.git diff --git a/actions/apignusocialversion.php b/actions/apignusocialversion.php index e50e2d59da..a56630c666 100644 --- a/actions/apignusocialversion.php +++ b/actions/apignusocialversion.php @@ -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); } }