X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapifriendshipsdestroy.php;h=610c912cb65f19c10dd6532e547af31f161f91dc;hb=f2bfcdc2c1d7bc4634bb06285380884a57075759;hp=1534aa799f482119b9c16908dd215191b40392ac;hpb=8884a5255fb90fda67b63fa0d4252d77176337e5;p=quix0rs-gnu-social.git diff --git a/actions/apifriendshipsdestroy.php b/actions/apifriendshipsdestroy.php index 1534aa799f..610c912cb6 100644 --- a/actions/apifriendshipsdestroy.php +++ b/actions/apifriendshipsdestroy.php @@ -33,8 +33,6 @@ if (!defined('STATUSNET')) { exit(1); } -require_once INSTALLDIR . '/lib/apiauth.php'; - /** * Allows the authenticating users to unfollow (unsubscribe) the user specified in * the ID parameter. Returns the unfollowed user in the requested format when @@ -60,7 +58,7 @@ class ApiFriendshipsDestroyAction extends ApiAuthAction * @return boolean success flag * */ - function prepare($args) + function prepare(array $args=array()) { parent::prepare($args); @@ -79,7 +77,7 @@ class ApiFriendshipsDestroyAction extends ApiAuthAction * * @return void */ - function handle($args) + function handle(array $args=array()) { parent::handle($args);