Author: xavier
Date: 2010-05-14 18:22:23 +0200 (Fri, 14 May 2010)
New Revision: 29472
Modified:
plugins/sfDoctrineRestGeneratorPlugin/trunk/data/generator/sfDoctrineRestGenerator/default/parts/indexAction.php
plugins/sfDoctrineRestGeneratorPlugin/trunk/data/generator/sfDoctrineRestGenerator/default/parts/parsePayload.php
Log:
[sfDoctrineRestGeneratorPlugin]: fixed a bug in module generation
Modified:
plugins/sfDoctrineRestGeneratorPlugin/trunk/data/generator/sfDoctrineRestGenerator/default/parts/indexAction.php
===================================================================
---
plugins/sfDoctrineRestGeneratorPlugin/trunk/data/generator/sfDoctrineRestGenerator/default/parts/indexAction.php
2010-05-14 15:56:10 UTC (rev 29471)
+++
plugins/sfDoctrineRestGeneratorPlugin/trunk/data/generator/sfDoctrineRestGenerator/default/parts/indexAction.php
2010-05-14 16:22:23 UTC (rev 29472)
@@ -7,7 +7,7 @@
{
$this->forward404Unless($request->isMethod(sfRequest::GET));
$params = $request->getParameterHolder()->getAll();
- $format = $params['sf_format'];
+ $format = isset($params['sf_format']) ? $params['sf_format'] : 'xml';
$request->setRequestFormat('html');
if (!in_array($format, <?php
var_export($this->configuration->getValue('default.formats_enabled',
array('json', 'xml'))) ?>))
Modified:
plugins/sfDoctrineRestGeneratorPlugin/trunk/data/generator/sfDoctrineRestGenerator/default/parts/parsePayload.php
===================================================================
---
plugins/sfDoctrineRestGeneratorPlugin/trunk/data/generator/sfDoctrineRestGenerator/default/parts/parsePayload.php
2010-05-14 15:56:10 UTC (rev 29471)
+++
plugins/sfDoctrineRestGeneratorPlugin/trunk/data/generator/sfDoctrineRestGenerator/default/parts/parsePayload.php
2010-05-14 16:22:23 UTC (rev 29472)
@@ -2,7 +2,7 @@
{
if ($force || !isset($this->_payload_array))
{
- $format = $this->getRequest()->getParameter('sf_format);
+ $format = $this->getRequest()->getParameter('sf_format');
if (!in_array($format, <?php
var_export($this->configuration->getValue('default.formats_enabled',
array('json', 'xml'))) ?>))
{
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.