r28523 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r28522‎ | r28523 | r28524 >
Date:20:07, 15 December 2007
Author:nikerabbit
Status:old
Tags:
Comment:
* Small tweak to extension export
Modified paths:
  • /trunk/extensions/Translate/MessageGroups.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/MessageGroups.php
@@ -388,7 +388,11 @@
389389 $this->makeExportArray( $array ), array(), $this->exportLineP
390390 );
391391
392 - return $txt . $this->exportEnd;
 392+ // Remove the last newline, not needed here
 393+ $txt = substr( $txt, 0, -1 );
 394+ $txt .= $this->exportPrefix . $this->exportEnd;
 395+
 396+ return $txt;
393397 }
394398
395399 public function exportToFile( &$array, $code, $authors ) {

Status & tagging log