Author: weaverryan
Date: 2010-02-06 21:53:10 +0100 (Sat, 06 Feb 2010)
New Revision: 27621

Modified:
   plugins/sfSympalPlugin/trunk/lib/helper/SympalContentSlotHelper.php
Log:
[1.4][sfSympalPlugin][1.0] Changing the signature slightly to allow you to pass 
null in as the 3rd argument but still have it default correctly to Text. This 
fixes failing Comment tests.


Modified: plugins/sfSympalPlugin/trunk/lib/helper/SympalContentSlotHelper.php
===================================================================
--- plugins/sfSympalPlugin/trunk/lib/helper/SympalContentSlotHelper.php 
2010-02-06 20:35:48 UTC (rev 27620)
+++ plugins/sfSympalPlugin/trunk/lib/helper/SympalContentSlotHelper.php 
2010-02-06 20:53:10 UTC (rev 27621)
@@ -33,8 +33,13 @@
  * @param array  $options Array of options for this slot
  * @return void
  */
-function get_sympal_content_slot($content, $name, $type = 'Text', 
$renderFunction = null, $options = array())
+function get_sympal_content_slot($content, $name, $type = null, 
$renderFunction = null, $options = array())
 {
+  if ($type === null)
+  {
+    $type = 'Text';
+  }
+  
   $slot = null;
   if ($name instanceof sfSympalContentSlot)
   {

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