You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by ag...@apache.org on 2010/02/04 09:58:21 UTC

svn commit: r906406 - /incubator/shindig/trunk/php/src/gadgets/GadgetSpecParser.php

Author: agektmr
Date: Thu Feb  4 08:58:21 2010
New Revision: 906406

URL: http://svn.apache.org/viewvc?rev=906406&view=rev
Log:
a fix to parse "ModulePrefs/Locale" properly

Modified:
    incubator/shindig/trunk/php/src/gadgets/GadgetSpecParser.php

Modified: incubator/shindig/trunk/php/src/gadgets/GadgetSpecParser.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/gadgets/GadgetSpecParser.php?rev=906406&r1=906405&r2=906406&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/GadgetSpecParser.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/GadgetSpecParser.php Thu Feb  4 08:58:21 2010
@@ -391,10 +391,8 @@
     if (($localeNodes = $modulePrefs->getElementsByTagName('Locale')) != null) {
       foreach ($localeNodes as $node) {
         $messageBundle = array();
-        if (($messageBundleNode = $node->getElementsByTagName('messagebundle')) != null && $messageBundleNode->length > 0) {
+        if (($messages = $node->getElementsByTagName('msg')) != null && $messages->length > 0) {
           // parse inlined messages
-          $messageBundleNode = $messageBundleNode->item(0);
-          $messages = $messageBundleNode->getElementsByTagName('msg');
           foreach ($messages as $msg) {
             $messageBundle[$msg->getAttribute('name')] = trim($msg->nodeValue);
           }