X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Foauth.php;h=9e2be68c776cc61e57f8dbc531fcdd404438c449;hb=41a81624a226fb3813ebaaec529fef1c2b3a8a5a;hp=9fb15b492af366cb4bef9cf31bc142ebe87feb63;hpb=56ee734b00aead633d5d213a6b140b75bc17ba96;p=friendica.git diff --git a/include/oauth.php b/include/oauth.php index 9fb15b492a..9e2be68c77 100644 --- a/include/oauth.php +++ b/include/oauth.php @@ -5,6 +5,8 @@ * */ +use Friendica\App; + define('REQUEST_TOKEN_DURATION', 300); define('ACCESS_TOKEN_DURATION', 31536000); @@ -155,7 +157,7 @@ class FKOAuth1 extends OAuthServer { //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']; }