X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fapi.php;h=a450f867a574e45edce018014a10be5944b86cc7;hb=51716957b24d97c20f078d1f880a6ca112cae792;hp=df62abd8e6dab1398506b8f7f13d5903251ff451;hpb=a96eb3428dfd66e132ff834212be408ee64337b2;p=friendica.git diff --git a/include/api.php b/include/api.php index df62abd8e6..a450f867a5 100644 --- a/include/api.php +++ b/include/api.php @@ -133,7 +133,7 @@ * @hook 'logged_in' * array $user logged user record */ - function api_login(&$a){ + function api_login(App &$a){ // login with oauth try{ $oauth = new FKOAuth1(); @@ -251,8 +251,8 @@ * @param App $a * @return string API call result */ - function api_call(&$a){ - GLOBAL $API, $called_api; + function api_call(App &$a){ + global $API, $called_api; $type="json"; if (strpos($a->query_string, ".xml")>0) $type="xml";