X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fapi.php;h=cda97c729ce9bb5bfc80c622ede8530de4387938;hb=69fd3c60b0bb7a54f34378462b9211c238f4f0d4;hp=406ef26c1c76adf22993b14e27da1badd1c87bb8;hpb=e8e1f9253da63a11c813708f5baaeba2d9f537f3;p=friendica.git diff --git a/mod/api.php b/mod/api.php index 406ef26c1c..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;
 	}