Author: Jonathan.Wage
Date: 2010-01-13 01:33:19 +0100 (Wed, 13 Jan 2010)
New Revision: 26553
Modified:
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalRenderingPlugin/lib/content/sfSympalContentRenderer.class.php
Log:
[1.4][sfSympalPlugin][1.0] Fixing variables passed to content templates
Modified:
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalRenderingPlugin/lib/content/sfSympalContentRenderer.class.php
===================================================================
---
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalRenderingPlugin/lib/content/sfSympalContentRenderer.class.php
2010-01-12 23:50:55 UTC (rev 26552)
+++
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalRenderingPlugin/lib/content/sfSympalContentRenderer.class.php
2010-01-13 00:33:19 UTC (rev 26553)
@@ -38,14 +38,10 @@
{
if (!$this->_renderVariables)
{
- $typeVarName =
strtolower($this->_content['Type']['name'][0]).substr($this->_content['Type']['name'],
1, strlen($this->_content['Type']['name']));
-
$this->_renderVariables = array(
- 'format' => $this->_format,
- 'content' => $this->_content,
+ 'format' => $this->_format,
+ 'content' => $this->_content,
'menuItem' => $this->_menuItem,
- $typeVarName => $this->_content->getRecord(),
- 'contentRecord' => $this->_content->getRecord()
);
$this->_renderVariables = $this->_dispatcher->filter(new sfEvent($this,
'sympal.content_renderer.filter_variables'),
$this->_renderVariables)->getReturnValue();
--
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.