X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fapi.php;h=cda97c729ce9bb5bfc80c622ede8530de4387938;hb=2196a0577b29dcec1ba4d2c32be10fa5f0e91034;hp=da2c40c3055a54b566cfd92bdcaf6a40680b65a0;hpb=3c97a6703cd5a743fc9339f52996bcb1eb436ef0;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;
 	}