r35986 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r35985‎ | r35986 | r35987 >
Date:08:43, 7 June 2008
Author:rotem
Status:old
Tags:
Comment:
Update to match the recent changes in the Translate extension.
Modified paths:
  • /trunk/phase3/maintenance/language/checkExtensions.php (modified) (history)
  • /trunk/phase3/maintenance/language/checkLanguage.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/language/checkExtensions.php
@@ -10,7 +10,7 @@
1111 require_once( 'languages.inc' );
1212 require_once( 'checkLanguage.inc' );
1313
14 -if( !class_exists( 'MessageGroups' ) ) {
 14+if( !class_exists( 'MessageGroups' ) || !class_exists( 'PremadeMediawikiExtensionGroups' ) ) {
1515 echo <<<END
1616 Please add the Translate extension to LocalSettings.php, and enable the extension groups:
1717 require_once( 'extensions/Translate/Translate.php' );
Index: trunk/phase3/maintenance/language/checkLanguage.inc
@@ -353,6 +353,8 @@
354354 $this->checks[] = 'duplicate';
355355 }
356356
 357+ $extensions = new PremadeMediawikiExtensionGroups();
 358+ $extensions->addAll();
357359 if( $extension == 'all' ) {
358360 $this->extensions = array();
359361 foreach( MessageGroups::singleton()->getGroups() as $group ) {

Status & tagging log