]> git.mxchange.org Git - friendica.git/blobdiff - src/Network/FKOAuth1.php
Ignore code blocks when extracting tags
[friendica.git] / src / Network / FKOAuth1.php
index 43ef1257c53a0178cee8ca576e8a4ce739192d21..33fdf0ac22732b48002be5bdb5e73642bf711320 100644 (file)
@@ -4,7 +4,7 @@
  */
 namespace Friendica\Network;
 
-use Friendica\Core\Addon;
+use Friendica\Core\Hook;
 use Friendica\Core\Logger;
 use Friendica\Core\PConfig;
 use Friendica\Core\System;
@@ -32,6 +32,7 @@ class FKOAuth1 extends OAuthServer
        /**
         * @param string $uid user id
         * @return void
+        * @throws HTTPException\InternalServerErrorException
         */
        public function loginUser($uid)
        {
@@ -69,6 +70,6 @@ class FKOAuth1 extends OAuthServer
 
                DBA::update('user', ['login_date' => DateTimeFormat::utcNow()], ['uid' => $_SESSION['uid']]);
 
-               Addon::callHooks('logged_in', $a->user);
+               Hook::callAll('logged_in', $a->user);
        }
 }