11cf36105c
Update function names and calls for Addon class.
29 lines
538 B
PHP
29 lines
538 B
PHP
<?php
|
|
|
|
namespace Friendica\Module;
|
|
|
|
use Friendica\BaseModule;
|
|
use Friendica\Core\Addon;
|
|
|
|
require_once 'boot.php';
|
|
require_once 'include/pgettext.php';
|
|
require_once 'include/security.php';
|
|
|
|
/**
|
|
* Logout module
|
|
*
|
|
* @author Hypolite Petovan mrpetovan@gmail.com
|
|
*/
|
|
class Logout extends BaseModule
|
|
{
|
|
/**
|
|
* @brief Process logout requests
|
|
*/
|
|
public static function init()
|
|
{
|
|
Addon::callHooks("logging_out");
|
|
nuke_session();
|
|
info(t('Logged out.') . EOL);
|
|
goaway(self::getApp()->get_baseurl());
|
|
}
|
|
}
|