mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Repair bugs with global parameter
This commit is contained in:
1 parent
aafd5539c4
commit
20469c65db
2 files changed
+2
-2
No files matched your search
@@ -3,7 +3,7 @@ class Logout extends Template
|
||||
{
|
||||
function __construct()
|
||||
{
|
||||
global $userManager;
|
||||
$userManager = new UserManager ();
|
||||
$userManager->logout();
|
||||
header('Location: ' . BASEURL . 'login');
|
||||
die();
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ class Oauth extends Template
|
||||
{
|
||||
function __construct()
|
||||
{
|
||||
global $userManager;
|
||||
$userManager = new UserManager ();
|
||||
$langMng = new LanguageManager('en');
|
||||
|
||||
$template = new Template('oauth');
|
||||
|
||||
Reference in new issue
Block a user