r58700 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r58699‎ | r58700 | r58701 >
Date:11:29, 7 November 2009
Author:roberthl
Status:deferred
Tags:
Comment:
Translate:
* Fix importing the last key of the OpenLayers message group.
Modified paths:
  • /trunk/extensions/Translate/ffs/OpenLayers.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/ffs/OpenLayers.php
@@ -56,6 +56,9 @@
5757 public function parseMessages( StringMangler $mangler ) {
5858 $data = file_get_contents( $this->filename );
5959
 60+ // Add trailing comma to last key pair.
 61+ $data = str_replace( "\"\n};", "\",\n};", $data );
 62+
6063 // Just get relevant data.
6164 $dataStart = strpos( $data, '{' );
6265 $dataEnd = strrpos( $data, '}' );

Status & tagging log