Index: trunk/phase3/maintenance/preprocessDump.php |
— | — | @@ -56,6 +56,21 @@ |
57 | 57 | return Maintenance::DB_NONE; |
58 | 58 | } |
59 | 59 | |
| 60 | + public function finalSetup() { |
| 61 | + parent::finalSetup(); |
| 62 | + |
| 63 | + global $wgUseDatabaseMessages, $wgLocalisationCacheConf, $wgHooks; |
| 64 | + $wgUseDatabaseMessages = false; |
| 65 | + $wgLocalisationCacheConf['storeClass'] = 'LCStore_Null'; |
| 66 | + $wgHooks['InterwikiLoadPrefix'][] = 'PreprocessDump::disableInterwikis'; |
| 67 | + } |
| 68 | + |
| 69 | + static function disableInterwikis( $prefix, &$data ) { |
| 70 | + # Title::newFromText will check on ach namespaced article if it's an interwiki. |
| 71 | + |
| 72 | + return false; |
| 73 | + } |
| 74 | + |
60 | 75 | public function execute() { |
61 | 76 | global $wgParser, $wgParserConf, $wgPreprocessorCacheThreshold; |
62 | 77 | |