X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FLogout.php;h=4ccba2d744f23188631b4626d817ea185fb17b78;hb=151c026a8aa5991c8f73b0974f479732c482cc45;hp=f212a894029cd6e9279e41e1dd520ef8f56c68a6;hpb=dbe49a0c1ad0467c2e12e363aac5635a1f11a3ea;p=friendica.git diff --git a/src/Module/Logout.php b/src/Module/Logout.php index f212a89402..4ccba2d744 100644 --- a/src/Module/Logout.php +++ b/src/Module/Logout.php @@ -2,15 +2,13 @@ /** * @file src/Module/Logout.php */ + namespace Friendica\Module; use Friendica\BaseModule; -use Friendica\Core\Addon; use Friendica\Core\Authentication; +use Friendica\Core\Hook; use Friendica\Core\L10n; -use Friendica\Core\System; - -require_once 'boot.php'; /** * Logout module @@ -24,7 +22,7 @@ class Logout extends BaseModule */ public static function init() { - Addon::callHooks("logging_out"); + Hook::callAll("logging_out"); Authentication::deleteSession(); info(L10n::t('Logged out.') . EOL); self::getApp()->internalRedirect();