fix crash when trying to edit a protected namespace
[lhc/web/wiklou.git] / includes / Title.php
index 70628c8..2281fa8 100644 (file)
@@ -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 );