r84175 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84174‎ | r84175 | r84176 >
Date:16:06, 17 March 2011
Author:platonides
Status:resolved (Comments)
Tags:
Comment:
Enable preprocessDump.php to work without a db.
Using the new hook added in r84173
Modified paths:
  • /trunk/phase3/maintenance/preprocessDump.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/preprocessDump.php
@@ -56,6 +56,21 @@
5757 return Maintenance::DB_NONE;
5858 }
5959
 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+
6075 public function execute() {
6176 global $wgParser, $wgParserConf, $wgPreprocessorCacheThreshold;
6277

Follow-up revisions

RevisionCommit summaryAuthorDate
r84393Follow up r84175platonides16:29, 20 March 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r84173Add hook InterwikiLoadPrefixplatonides15:51, 17 March 2011

Comments

#Comment by Nikerabbit (talk | contribs)   19:25, 17 March 2011

Typo in comment: ach

#Comment by Platonides (talk | contribs)   16:29, 20 March 2011

Fixed in r84393.

Status & tagging log