From 40ab16f2f040b9b1a660dcb1e34be03a1c515e6b Mon Sep 17 00:00:00 2001 From: Ilmari Karonen Date: Tue, 7 Aug 2007 16:12:14 +0000 Subject: [PATCH] fix crash when trying to edit a protected namespace --- includes/Title.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/Title.php b/includes/Title.php index 70628c8764..2281fa8bff 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1096,6 +1096,7 @@ class Title { * @return array Array of arrays of the arguments to wfMsg to explain permissions problems. */ private function getUserPermissionsErrorsInternal( $action, $user, $doExpensiveQueries = true ) { + global $wgContLang; $fname = 'Title::userCan'; wfProfileIn( $fname ); -- 2.20.1