You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by ch...@apache.org on 2009/08/02 14:51:05 UTC

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

Author: chabotc
Date: Sun Aug  2 12:51:04 2009
New Revision: 800057

URL: http://svn.apache.org/viewvc?rev=800057&view=rev
Log:
When the content type isn't set, default to html (which is consistent with java's behavior

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=800057&r1=800056&r2=800057&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/GadgetSpecParser.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/GadgetSpecParser.php Sun Aug  2 12:51:04 2009
@@ -70,7 +70,7 @@
       foreach (explode(',', $viewNode->getAttribute('view')) as $view) {
         $view = trim($view);
         $href = trim($viewNode->getAttribute('href'));
-        $type = trim(strtoupper($viewNode->getAttribute('type')));
+        $type = !empty($viewNode->getAttribute('type')) ? trim(strtoupper($viewNode->getAttribute('type'))) : 'html';
         $dataPipeliningRequests = array();
         if (! empty($href) && $type == 'HTML') {
           require_once 'src/gadgets/templates/DataPipelining.php';