Author: chabotc
Date: Sun Aug 2 13:02:06 2009
New Revision: 800060
URL: http://svn.apache.org/viewvc?rev=800060&view=rev
Log:
Fix up a typo that snuk in
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=800060&r1=800059&r2=800060&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/GadgetSpecParser.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/GadgetSpecParser.php Sun Aug 2
13:02:06 2009
@@ -70,7 +70,10 @@
foreach (explode(',', $viewNode->getAttribute('view')) as $view) {
$view = trim($view);
$href = trim($viewNode->getAttribute('href'));
- $type = !empty($viewNode->getAttribute('type')) ?
trim(strtoupper($viewNode->getAttribute('type'))) : 'html';
+ $type = trim(strtoupper($viewNode->getAttribute('type')));
+ if (empty($type)) {
+ $type = 'html';
+ }
$dataPipeliningRequests = array();
if (! empty($href) && $type == 'HTML') {
require_once 'src/gadgets/templates/DataPipelining.php';