Author: Jonathan.Wage
Date: 2010-02-11 17:18:18 +0100 (Thu, 11 Feb 2010)
New Revision: 27903

Modified:
   
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalRenderingPlugin/lib/content/sfSympalContentRenderer.class.php
   plugins/sfSympalPlugin/trunk/lib/sfSympalContext.php
Log:
[1.4][sfSympalPlugin][1.0] Fixing more problems with empty sf_format


Modified: 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalRenderingPlugin/lib/content/sfSympalContentRenderer.class.php
===================================================================
--- 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalRenderingPlugin/lib/content/sfSympalContentRenderer.class.php
      2010-02-11 16:17:52 UTC (rev 27902)
+++ 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalRenderingPlugin/lib/content/sfSympalContentRenderer.class.php
      2010-02-11 16:18:18 UTC (rev 27903)
@@ -12,7 +12,7 @@
     $_format,
     $_renderVariables = array();
 
-  public function __construct(sfSympalContext $sympalContext, sfSympalContent 
$content, $format = 'html')
+  public function __construct(sfSympalContext $sympalContext, sfSympalContent 
$content, $format = null)
   {
     $this->_symfonyContext = $sympalContext->getSymfonyContext();
     $this->_sympalContext = $sympalContext;
@@ -21,7 +21,7 @@
     $this->_configuration->loadHelpers(array('Tag', 'Url', 'Partial'));
     $this->_content = $content;
     $this->_menuItem = $this->_content->getMenuItem();
-    $this->_format = $format;
+    $this->_format = $format ? $format : 'html';
   }
 
   public function getFormat()

Modified: plugins/sfSympalPlugin/trunk/lib/sfSympalContext.php
===================================================================
--- plugins/sfSympalPlugin/trunk/lib/sfSympalContext.php        2010-02-11 
16:17:52 UTC (rev 27902)
+++ plugins/sfSympalPlugin/trunk/lib/sfSympalContext.php        2010-02-11 
16:18:18 UTC (rev 27903)
@@ -259,7 +259,7 @@
    * @param string $format Optional format to render
    * @return sfSympalContentRenderer $renderer
    */
-  public function getContentRenderer(sfSympalContent $content, $format = 
'html')
+  public function getContentRenderer(sfSympalContent $content, $format = null)
   {
     return new sfSympalContentRenderer($this, $content, $format);
   }

-- 
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.

Reply via email to