X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapihelptest.php;h=e4ef55f2e397f4f353d0d956375afdb3dda42471;hb=fc61b7162576deb11a7947a8a04293b744f9d5fc;hp=2cec4646273229c4397c16b69ad90b964eab40d6;hpb=bb08611def2309711f91c1ab6cdab92fb7c069b2;p=quix0rs-gnu-social.git diff --git a/actions/apihelptest.php b/actions/apihelptest.php index 2cec464627..e4ef55f2e3 100644 --- a/actions/apihelptest.php +++ b/actions/apihelptest.php @@ -21,6 +21,7 @@ * * @category API * @package StatusNet + * @author Evan Prodromou * @author Zach Copley * @copyright 2009 StatusNet, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 @@ -38,14 +39,14 @@ require_once INSTALLDIR . '/lib/api.php'; * * @category API * @package StatusNet + * @author Evan Prodromou * @author Zach Copley * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ */ -class ApiHelpTestAction extends TwitterApiAction +class ApiHelpTestAction extends ApiAction { - var $format = null; /** * Take arguments for running @@ -59,7 +60,6 @@ class ApiHelpTestAction extends TwitterApiAction function prepare($args) { parent::prepare($args); - $this->format = $this->arg('format'); return true; } @@ -76,13 +76,13 @@ class ApiHelpTestAction extends TwitterApiAction parent::handle($args); if ($this->format == 'xml') { - $this->init_document('xml'); + $this->initDocument('xml'); $this->element('ok', null, 'true'); - $this->end_document('xml'); + $this->endDocument('xml'); } elseif ($this->format == 'json') { - $this->init_document('json'); + $this->initDocument('json'); print '"ok"'; - $this->end_document('json'); + $this->endDocument('json'); } else { $this->clientError( _('API method not found!'),