X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fapi.php;h=cda97c729ce9bb5bfc80c622ede8530de4387938;hb=0b5f7da270bcaa679cb684dbbbbe40781f0b49c6;hp=da2c40c3055a54b566cfd92bdcaf6a40680b65a0;hpb=c5f2157eb2914de06ae098907b1dfb68fc4d03e3;p=friendica.git diff --git a/mod/api.php b/mod/api.php index da2c40c305..cda97c729c 100644 --- a/mod/api.php +++ b/mod/api.php @@ -1,5 +1,9 @@ cmd=='api/oauth/authorize'){ /* * api/oauth/authorize interact with the user. return a standard page @@ -58,7 +62,7 @@ function api_content(&$a) { $consumer = new OAuthConsumer($app['client_id'], $app['pw'], $app['redirect_uri']); $verifier = md5($app['secret'].local_user()); - set_config("oauth", $verifier, local_user()); + Config::set("oauth", $verifier, local_user()); if ($consumer->callback_url!=null) { @@ -84,7 +88,7 @@ function api_content(&$a) { } - if(! local_user()) { + if (! local_user()) { /// @TODO We need login form to redirect to this page notice( t('Please login to continue.') . EOL ); return login(false,$request->get_parameters()); @@ -106,8 +110,6 @@ function api_content(&$a) { '$no' => t('No'), )); - //echo "
"; var_dump($app); killme(); - return $o; }