r32080 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32079‎ | r32080 | r32081 >
Date:21:56, 17 March 2008
Author:brion
Status:old
Tags:
Comment:
Make DidYouMean not kill the parser test framework... however it spews notice warnings and appends crap to output, breaking a lot of tests.
Modified paths:
  • /trunk/extensions/DidYouMean/DidYouMean.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DidYouMean/DidYouMean.php
@@ -35,6 +35,9 @@
3636 # handle undelete
3737 $wgHooks['ArticleUndelete'][] = 'wfDymArticleUndelete';
3838
 39+# handle parser test setup
 40+$wgHooks['ParserTestTables'][] = 'wfDymParserTestTables';
 41+
3942 # set this in LocalSettings.php
4043 $wgDymUseSeeTemplate = false;
4144
@@ -396,3 +399,9 @@
397400
398401 }
399402 }
 403+
 404+function wfDymParserTestTables( &$tables ) {
 405+ $tables[] = 'dympage';
 406+ $tables[] = 'dymnorm';
 407+ return true;
 408+}

Status & tagging log