]> git.mxchange.org Git - friendica.git/blobdiff - include/api.php
converted more to dbm::is_result() + added braces/space
[friendica.git] / include / api.php
index df62abd8e6dab1398506b8f7f13d5903251ff451..a450f867a574e45edce018014a10be5944b86cc7 100644 (file)
         * @hook 'logged_in'
         *              array $user     logged user record
         */
-       function api_login(&$a){
+       function api_login(App &$a){
                // login with oauth
                try{
                        $oauth = new FKOAuth1();
         * @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";