Repair bugs with global parameter
This commit is contained in:
		@@ -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');
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user