r55145 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r55144‎ | r55145 | r55146 >
Date:15:41, 16 August 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
Fix fatal
Modified paths:
  • /trunk/extensions/Translate/scripts/sync-group.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/scripts/sync-group.php
@@ -68,7 +68,11 @@
6969
7070 foreach ( $codes as $code ) {
7171
72 - $file = $group->getMessageFileWithPath( $code );
 72+ if ( $group instanceof FileBasedMessageGroup ) {
 73+ $file = $group->getSourceFilePath( $code );
 74+ } else {
 75+ $file = $group->getMessageFileWithPath( $code );
 76+ }
7377 if ( !$file ) continue;
7478
7579 if ( !file_exists( $file ) ) continue;

Status & tagging log