]> git.mxchange.org Git - friendica.git/blobdiff - mod/api.php
Merge pull request #3518 from AndyHee/3.5.2rc
[friendica.git] / mod / api.php
index 74a0cff6f4a17d3ecf1cb66e55eb1075320378f5..cd5d5241f86c8faa231407c51b9e6540ce17ac7e 100644 (file)
@@ -1,5 +1,7 @@
 <?php
 
+use Friendica\App;
+
 require_once('include/api.php');
 
 function oauth_get_client($request){
@@ -20,7 +22,7 @@ function oauth_get_client($request){
        return $r[0];
 }
 
-function api_post(App &$a) {
+function api_post(App $a) {
 
        if (! local_user()) {
                notice( t('Permission denied.') . EOL);
@@ -34,7 +36,7 @@ function api_post(App &$a) {
 
 }
 
-function api_content(App &$a) {
+function api_content(App $a) {
        if ($a->cmd=='api/oauth/authorize'){
                /*
                 * api/oauth/authorize interact with the user. return a standard page
@@ -106,8 +108,6 @@ function api_content(App &$a) {
                        '$no'   => t('No'),
                ));
 
-               //echo "<pre>"; var_dump($app); killme();
-
                return $o;
        }