X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapiatomservice.php;h=9e45a30fcc2e883434254f4ddd421b2b3747b714;hb=64b72a3c9b8c9ee2d8716a3271834293d1e863f8;hp=5d786723e95602cb95b9ec73857735528765ffe9;hpb=59a0b2a82da418f688faf182407146d9e7a7af7a;p=quix0rs-gnu-social.git diff --git a/actions/apiatomservice.php b/actions/apiatomservice.php index 5d786723e9..9e45a30fcc 100644 --- a/actions/apiatomservice.php +++ b/actions/apiatomservice.php @@ -27,7 +27,9 @@ * @link http://status.net/ */ -require_once INSTALLDIR.'/lib/apibareauth.php'; +if (!defined('STATUSNET')) { + exit(1); +} /** * Shows an AtomPub service document for a user @@ -56,8 +58,7 @@ class ApiAtomServiceAction extends ApiBareAuthAction if (empty($this->user)) { // TRANS: Client error displayed when making an Atom API request for an unknown user. - $this->clientError(_('No such user.'), 404, $this->format); - return; + $this->clientError(_('No such user.'), 404); } return true;