http://www.mediawiki.org/wiki/Special:Code/MediaWiki/69035
Revision: 69035
Author: siebrand
Date: 2010-07-04 23:24:18 +0000 (Sun, 04 Jul 2010)
Log Message:
-----------
Whitespace updates
Modified Paths:
--------------
trunk/extensions/Translate/Groups.php
Modified: trunk/extensions/Translate/Groups.php
===================================================================
--- trunk/extensions/Translate/Groups.php 2010-07-04 23:09:20 UTC (rev
69034)
+++ trunk/extensions/Translate/Groups.php 2010-07-04 23:24:18 UTC (rev
69035)
@@ -337,9 +337,11 @@
public function load( $code ) {
$messages = array();
+
foreach( $this->getGroups() as $group ) {
$messages += $group->load( $code );
}
+
return $messages;
}
@@ -354,9 +356,13 @@
if ( !isset( $this->groups ) ) {
$groups = array();
$ids = (array) $this->conf['GROUPS'];
+
foreach( $ids as $id ) {
// Don't try to include self and go to infinite
loop
- if ( $id === $this->getId() ) continue;
+ if ( $id === $this->getId() ) {
+ continue;
+ }
+
$groups[$id] = MessageGroups::getGroup( $id );
}
$this->groups = $groups;
@@ -402,5 +408,4 @@
$group->setTags( $collection );
}
}
-
-}
\ No newline at end of file
+}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs