From 60731518dbba0af4955b661732ecf3fe1fbb91a9 Mon Sep 17 00:00:00 2001 From: Thomas Bleher Date: Thu, 10 Jan 2008 16:51:45 +0000 Subject: [PATCH] Fix some places where globals where used without being declared as being global. Also remove one unused variable. --- includes/User.php | 1 + includes/api/ApiParse.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/User.php b/includes/User.php index 00c8981e58..6734c322ee 100644 --- a/includes/User.php +++ b/includes/User.php @@ -1961,6 +1961,7 @@ class User { * Logout user. */ function logout() { + global $wgUser; if( wfRunHooks( 'UserLogout', array(&$this) ) ) { $this->doLogout(); wfRunHooks( 'UserLogoutComplete', array(&$wgUser) ); diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index 39382f3a3e..4e9475462b 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -42,7 +42,6 @@ class ApiParse extends ApiBase { $params = $this->extractRequestParams(); $text = $params['text']; $title = $params['title']; - $retval = ''; //Create title for parser $title_obj = Title :: newFromText($params['title']); -- 2.20.1