Repair bugs with global parameter
This commit is contained in:
parent
aafd5539c4
commit
20469c65db
@ -3,7 +3,7 @@ class Logout extends Template
|
||||
{
|
||||
function __construct()
|
||||
{
|
||||
global $userManager;
|
||||
$userManager = new UserManager ();
|
||||
$userManager->logout();
|
||||
header('Location: ' . BASEURL . 'login');
|
||||
die();
|
||||
|
@ -3,7 +3,7 @@ class Oauth extends Template
|
||||
{
|
||||
function __construct()
|
||||
{
|
||||
global $userManager;
|
||||
$userManager = new UserManager ();
|
||||
$langMng = new LanguageManager('en');
|
||||
|
||||
$template = new Template('oauth');
|
||||
|
Loading…
Reference in New Issue
Block a user