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