mirror of
https://github.com/friendica/friendica
synced 2025-04-24 21:50:10 +00:00
Replace deprecated Addon::callHooks with Hook::callAll
- Update documentation
This commit is contained in:
parent
895b3abf32
commit
55e54bb950
58 changed files with 450 additions and 475 deletions
|
@ -2,13 +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;
|
||||
|
||||
/**
|
||||
* Logout module
|
||||
|
@ -22,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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue