From: Ilmari Karonen Date: Tue, 7 Aug 2007 16:12:14 +0000 (+0000) Subject: fix crash when trying to edit a protected namespace X-Git-Tag: 1.31.0-rc.0~51839 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=40ab16f2f040b9b1a660dcb1e34be03a1c515e6b;p=lhc%2Fweb%2Fwiklou.git fix crash when trying to edit a protected namespace --- 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 );