You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by ch...@apache.org on 2008/12/11 17:36:08 UTC

svn commit: r725735 - /incubator/shindig/trunk/php/src/gadgets/servlet/GadgetRenderingServlet.php

Author: chabotc
Date: Thu Dec 11 08:36:08 2008
New Revision: 725735

URL: http://svn.apache.org/viewvc?rev=725735&view=rev
Log:
output forced js libs script tag to buffer and not stdout, cause invalid location of script tag in the document

Modified:
    incubator/shindig/trunk/php/src/gadgets/servlet/GadgetRenderingServlet.php

Modified: incubator/shindig/trunk/php/src/gadgets/servlet/GadgetRenderingServlet.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/gadgets/servlet/GadgetRenderingServlet.php?rev=725735&r1=725734&r2=725735&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/servlet/GadgetRenderingServlet.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/servlet/GadgetRenderingServlet.php Thu Dec 11 08:36:08 2008
@@ -163,7 +163,7 @@
     // Forced libs first.
     if (! empty($forcedLibs)) {
       $libs = explode(':', $forcedLibs);
-      echo sprintf($externFmt, Config::get('default_js_prefix') . $this->getJsUrl($libs, $gadget) . "&container=" . $context->getContainer()) . "\n";
+      $content .= sprintf($externFmt, Config::get('default_js_prefix') . $this->getJsUrl($libs, $gadget) . "&container=" . $context->getContainer()) . "\n";
     }
     $content .= "<script>\n";