r55268 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r55267‎ | r55268 | r55269 >
Date:20:47, 18 August 2009
Author:brion
Status:deferred
Tags:
Comment:
Add ParserTestTables hook so ParserTests don't die when this ext is enabled
Modified paths:
  • /trunk/extensions/LocalisationUpdate/LocalisationUpdate.class.php (modified) (history)
  • /trunk/extensions/LocalisationUpdate/LocalisationUpdate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LocalisationUpdate/LocalisationUpdate.php
@@ -42,4 +42,4 @@
4343 $wgAutoloadClasses['QuickArrayReader'] = $dir . 'QuickArrayReader.php';
4444
4545 $wgHooks['LoadExtensionSchemaUpdates'][] = 'LocalisationUpdate::schemaUpdates';
46 -
 46+$wgHooks['ParserTestTables'][] = 'LocalisationUpdate::parserTestTables';
Index: trunk/extensions/LocalisationUpdate/LocalisationUpdate.class.php
@@ -490,6 +490,12 @@
491491 $wgExtNewFields[] = array( 'localisation_file_hash', 'lfh_timestamp', "$dir/patch-lfh_timestamp.sql" );
492492 return true;
493493 }
 494+
 495+ public static function parserTestTables( &$tables ) {
 496+ $tables[] = 'localisation';
 497+ $tables[] = 'localisation_file_hash';
 498+ return true;
 499+ }
494500
495501 public static function myLog( $log ) {
496502 if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {

Status & tagging log