r69035 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69034‎ | r69035 | r69036 >
Date:23:24, 4 July 2010
Author:siebrand
Status:deferred
Tags:
Comment:
Whitespace updates
Modified paths:
  • /trunk/extensions/Translate/Groups.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/Groups.php
@@ -337,9 +337,11 @@
338338
339339 public function load( $code ) {
340340 $messages = array();
 341+
341342 foreach( $this->getGroups() as $group ) {
342343 $messages += $group->load( $code );
343344 }
 345+
344346 return $messages;
345347 }
346348
@@ -354,9 +356,13 @@
355357 if ( !isset( $this->groups ) ) {
356358 $groups = array();
357359 $ids = (array) $this->conf['GROUPS'];
 360+
358361 foreach( $ids as $id ) {
359362 // Don't try to include self and go to infinite loop
360 - if ( $id === $this->getId() ) continue;
 363+ if ( $id === $this->getId() ) {
 364+ continue;
 365+ }
 366+
361367 $groups[$id] = MessageGroups::getGroup( $id );
362368 }
363369 $this->groups = $groups;
@@ -402,5 +408,4 @@
403409 $group->setTags( $collection );
404410 }
405411 }
406 -
407 -}
\ No newline at end of file
 412+}

Status & tagging log