Repair bugs with global parameter

This commit is contained in:
Haitem 2020-09-14 16:24:59 +02:00
parent aafd5539c4
commit 20469c65db
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ class Logout extends Template
{
function __construct()
{
global $userManager;
$userManager = new UserManager ();
$userManager->logout();
header('Location: ' . BASEURL . 'login');
die();

View File

@ -3,7 +3,7 @@ class Oauth extends Template
{
function __construct()
{
global $userManager;
$userManager = new UserManager ();
$langMng = new LanguageManager('en');
$template = new Template('oauth');