X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapifriendshipsshow.php;h=31f47ce2f15f59dd0d07ded6e9991e0a9bf22cde;hb=3326b7b850f538f0e3c2c7969c5e566e2a374ffb;hp=1cbb98891ae2c01c6f05623938908ba8e9faa577;hpb=72c86913a427e4626b8b43cb725a65cd7f7a0f3c;p=quix0rs-gnu-social.git diff --git a/actions/apifriendshipsshow.php b/actions/apifriendshipsshow.php index 1cbb98891a..31f47ce2f1 100644 --- a/actions/apifriendshipsshow.php +++ b/actions/apifriendshipsshow.php @@ -29,9 +29,7 @@ * @link http://status.net/ */ -if (!defined('STATUSNET')) { - exit(1); -} +if (!defined('GNUSOCIAL')) { exit(1); } /** * Outputs detailed information about the relationship between two users @@ -56,7 +54,7 @@ class ApiFriendshipsShowAction extends ApiBareAuthAction * * @return boolean success flag */ - function prepare(array $args=array()) + protected function prepare(array $args=array()) { parent::prepare($args); @@ -109,13 +107,11 @@ class ApiFriendshipsShowAction extends ApiBareAuthAction * * Check the format and show the user info * - * @param array $args $_REQUEST data (unused) - * * @return void */ - function handle(array $args=array()) + protected function handle() { - parent::handle($args); + parent::handle(); if (!in_array($this->format, array('xml', 'json'))) { // TRANS: Client error displayed when coming across a non-supported API method.