mirror of
https://github.com/friendica/friendica
synced 2025-04-22 19:50:11 +00:00
Remove old file and requires
Remove pgettext.php and remove require_once calls
This commit is contained in:
parent
07d306aa37
commit
b4d0df18c5
8 changed files with 5 additions and 242 deletions
|
@ -1,12 +1,14 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file src/Module/Logout.php
|
||||
*/
|
||||
namespace Friendica\Module;
|
||||
|
||||
use Friendica\BaseModule;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\L10n;
|
||||
|
||||
require_once 'boot.php';
|
||||
require_once 'include/pgettext.php';
|
||||
require_once 'include/security.php';
|
||||
|
||||
/**
|
||||
|
@ -23,7 +25,7 @@ class Logout extends BaseModule
|
|||
{
|
||||
Addon::callHooks("logging_out");
|
||||
nuke_session();
|
||||
info(t('Logged out.') . EOL);
|
||||
info(L10n::t('Logged out.') . EOL);
|
||||
goaway(self::getApp()->get_baseurl());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue