r51199 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51198‎ | r51199 | r51200 >
Date:17:08, 30 May 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
Convert nulls returned by readers to array, to keep setInFile happy
Modified paths:
  • /trunk/extensions/Translate/MessageGroups.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/MessageGroups.php
@@ -98,7 +98,8 @@
9999 public function load( $code ) {
100100 $reader = $this->getReader( $code );
101101 if ( $reader ) {
102 - return $reader->parseMessages( $this->mangler );
 102+ $messages = $reader->parseMessages( $this->mangler );
 103+ return $messages ? $messages : array();
103104 }
104105 return array();
105106 }

Status & tagging log