Author: chabotc
Date: Fri Aug 22 10:42:56 2008
New Revision: 688131

URL: http://svn.apache.org/viewvc?rev=688131&view=rev
Log:
Force PHP Shindig to use the old custom json batch format, will be removed once 
we implemented the new 0.8.1 JSON-RPC version

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

Modified: 
incubator/shindig/trunk/php/src/gadgets/http/GadgetRenderingServlet.php
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/gadgets/http/GadgetRenderingServlet.php?rev=688131&r1=688130&r2=688131&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/http/GadgetRenderingServlet.php 
(original)
+++ incubator/shindig/trunk/php/src/gadgets/http/GadgetRenderingServlet.php Fri 
Aug 22 10:42:56 2008
@@ -340,6 +340,11 @@
                                }
                        }
                }
+               //FIXME temp fix to force the js api to use the REST interface 
until we finish implementing the JSON-RPC service
+               if (!isset($gadgetConfig['opensocial-0.8'])) {
+                       $gadgetConfig['opensocial-0.8'] = array();
+               }
+               $gadgetConfig['opensocial-0.8']['impl'] = "rest";
                return "gadgets.config.init(" . json_encode($gadgetConfig) . 
");\n";
        }
 


Reply via email to