X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Foauth.php;fp=include%2Foauth.php;h=c916b6cec525f5b45874c2096e847695d71f296c;hb=0dfa57948f152a90a4d8093419a2ea5ced07349c;hp=ce22086d12311354e1b95a4894e8204a63e06542;hpb=9eb1f4b9c301d8f84afabbd651cb45052f402bc6;p=friendica.git diff --git a/include/oauth.php b/include/oauth.php index ce22086d12..c916b6cec5 100644 --- a/include/oauth.php +++ b/include/oauth.php @@ -6,6 +6,8 @@ */ use Friendica\App; +use Friendica\Core\Config; +use Friendica\Core\PConfig; use Friendica\Core\System; define('REQUEST_TOKEN_DURATION', 300); @@ -92,7 +94,7 @@ class FKOAuthDataStore extends OAuthDataStore { $ret=Null; // get user for this verifier - $uverifier = get_config("oauth", $verifier); + $uverifier = Config::get("oauth", $verifier); logger(__function__.":".$verifier.",".$uverifier); if (is_null($verifier) || ($uverifier!==false)){ @@ -115,10 +117,10 @@ class FKOAuthDataStore extends OAuthDataStore { if (!is_null($ret) && $uverifier!==false){ del_config("oauth", $verifier); - /* $apps = get_pconfig($uverifier, "oauth", "apps"); + /* $apps = PConfig::get($uverifier, "oauth", "apps"); if ($apps===false) $apps=array(); $apps[] = $consumer->key; - set_pconfig($uverifier, "oauth", "apps", $apps);*/ + PConfig::set($uverifier, "oauth", "apps", $apps);*/ } return $ret; @@ -148,7 +150,7 @@ class FKOAuth1 extends OAuthServer { } $_SESSION['uid'] = $record['uid']; $_SESSION['theme'] = $record['theme']; - $_SESSION['mobile-theme'] = get_pconfig($record['uid'], 'system', 'mobile_theme'); + $_SESSION['mobile-theme'] = PConfig::get($record['uid'], 'system', 'mobile_theme'); $_SESSION['authenticated'] = 1; $_SESSION['page_flags'] = $record['page-flags']; $_SESSION['my_url'] = System::baseUrl() . '/profile/' . $record['nickname'];