Author: bhofmann
Date: Wed Jun 8 14:30:57 2011
New Revision: 1133415
URL: http://svn.apache.org/viewvc?rev=1133415&view=rev
Log:
Fixed bug in gadgetspecparser which results in rendering errors of content
blocks that have no view attribute
Modified:
shindig/trunk/php/src/gadgets/GadgetSpecParser.php
Modified: shindig/trunk/php/src/gadgets/GadgetSpecParser.php
URL:
http://svn.apache.org/viewvc/shindig/trunk/php/src/gadgets/GadgetSpecParser.php?rev=1133415&r1=1133414&r2=1133415&view=diff
==============================================================================
--- shindig/trunk/php/src/gadgets/GadgetSpecParser.php (original)
+++ shindig/trunk/php/src/gadgets/GadgetSpecParser.php Wed Jun 8 14:30:57 2011
@@ -76,7 +76,7 @@ class GadgetSpecParser {
if ($viewNode->getAttribute('type' == 'url') &&
$viewNode->getAttribute('href') == null) {
throw new GadgetSpecException("Malformed <Content> href value");
}
- foreach ($this->parseViewAttribute($viewNode->getAttribute('view')) as
$view) {
+ foreach (explode(',', $viewNode->getAttribute('view')) as $view) {
$view = trim($view);
$href = trim($viewNode->getAttribute('href'));
$type = trim(strtoupper($viewNode->getAttribute('type')));