X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapihelptest.php;h=d0e9e4926f55ca85adfce968ef50a9feb9cb83f3;hb=d342899677d208d7e300b29ad3a8d053e4c6f704;hp=e4ef55f2e397f4f353d0d956375afdb3dda42471;hpb=39598582d90eab2a8abaf2ca01bcad6cb09d2c73;p=quix0rs-gnu-social.git diff --git a/actions/apihelptest.php b/actions/apihelptest.php index e4ef55f2e3..d0e9e4926f 100644 --- a/actions/apihelptest.php +++ b/actions/apihelptest.php @@ -32,7 +32,7 @@ if (!defined('STATUSNET')) { exit(1); } -require_once INSTALLDIR . '/lib/api.php'; +require_once INSTALLDIR . '/lib/apiprivateauth.php'; /** * Returns the string "ok" in the requested format with a 200 OK HTTP status code. @@ -45,7 +45,7 @@ require_once INSTALLDIR . '/lib/api.php'; * @link http://status.net/ */ -class ApiHelpTestAction extends ApiAction +class ApiHelpTestAction extends ApiPrivateAuthAction { /** @@ -85,12 +85,27 @@ class ApiHelpTestAction extends ApiAction $this->endDocument('json'); } else { $this->clientError( - _('API method not found!'), + _('API method not found.'), 404, $this->format ); } } + /** + * Return true if read only. + * + * MAY override + * + * @param array $args other arguments + * + * @return boolean is read only action? + */ + + function isReadOnly($args) + { + return true; + } + }