Merge "Add index on rc_this_oldid"
[lhc/web/wiklou.git] / includes / installer / MysqlUpdater.php
index c5c45f0..408f2fb 100644 (file)
@@ -757,8 +757,9 @@ class MysqlUpdater extends DatabaseUpdater {
                        'Converting links and brokenlinks tables to pagelinks'
                );
 
-               global $wgContLang;
-               foreach ( $wgContLang->getNamespaces() as $ns => $name ) {
+               foreach (
+                       MediaWikiServices::getInstance()->getContentLanguage()->getNamespaces() as $ns => $name
+               ) {
                        if ( $ns == 0 ) {
                                continue;
                        }