X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Foauth.php;h=ce22086d12311354e1b95a4894e8204a63e06542;hb=b1668ffddaeff2aeb256cb23ab094d78b10a5108;hp=9fb15b492af366cb4bef9cf31bc142ebe87feb63;hpb=56ee734b00aead633d5d213a6b140b75bc17ba96;p=friendica.git diff --git a/include/oauth.php b/include/oauth.php index 9fb15b492a..ce22086d12 100644 --- a/include/oauth.php +++ b/include/oauth.php @@ -5,6 +5,9 @@ * */ +use Friendica\App; +use Friendica\Core\System; + define('REQUEST_TOKEN_DURATION', 300); define('ACCESS_TOKEN_DURATION', 31536000); @@ -148,14 +151,14 @@ class FKOAuth1 extends OAuthServer { $_SESSION['mobile-theme'] = get_pconfig($record['uid'], 'system', 'mobile_theme'); $_SESSION['authenticated'] = 1; $_SESSION['page_flags'] = $record['page-flags']; - $_SESSION['my_url'] = App::get_baseurl() . '/profile/' . $record['nickname']; + $_SESSION['my_url'] = System::baseUrl() . '/profile/' . $record['nickname']; $_SESSION['addr'] = $_SERVER['REMOTE_ADDR']; $_SESSION["allow_api"] = true; //notice( t("Welcome back ") . $record['username'] . EOL); $a->user = $record; - if(strlen($a->user['timezone'])) { + if (strlen($a->user['timezone'])) { date_default_timezone_set($a->user['timezone']); $a->timezone = $a->user['timezone']; }