Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Missing argument 3 for smarty_function_html_options()

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
yankee
Smarty Rookie


Joined: 02 Mar 2009
Posts: 31

PostPosted: Mon Jun 22, 2009 11:24 pm    Post subject: Missing argument 3 for smarty_function_html_options() Reply with quote

Hi @ll,

in the file plugins/function.html_select_date.php on line 255 and 302 the function smarty_function_html_options is called without the template argument.
Of course the function select_date does not use the variable anyway, so removing the template var from the function header in the select_data function solves the problem, but since that probably creates new problems elswhere, this will probably be the best solution:
Code:
Index: function.html_select_date.php
===================================================================
--- function.html_select_date.php       (revision 3167)
+++ function.html_select_date.php       (working copy)
@@ -252,7 +252,7 @@
                 'values' => $day_values,
                 'selected' => $time[2],
                 'print_result' => false),
-            $smarty);
+            $smarty, $template);
         $day_result .= '</select>';
     }

@@ -299,7 +299,7 @@
                     'values' => $yearvals,
                     'selected' => $time[0],
                     'print_result' => false),
-                $smarty);
+                $smarty, $template);
             $year_result .= '</select>';
         }
     }
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5067
Location: Hamburg / Germany

PostPosted: Wed Jun 24, 2009 4:28 pm    Post subject: Reply with quote

Thanks for your input. This has been fixed in the SVN now.
Back to top
View user's profile Send private message
yankee
Smarty Rookie


Joined: 02 Mar 2009
Posts: 31

PostPosted: Wed Jul 01, 2009 7:00 pm    Post subject: Reply with quote

Please check this patch:
Code:
Index: plugins/function.html_select_date.php
===================================================================
--- plugins/function.html_select_date.php       (Revision 3168)
+++ plugins/function.html_select_date.php       (Arbeitskopie)
@@ -252,7 +252,7 @@
                 'values' => $day_values,
                 'selected' => $time[2],
                 'print_result' => false),
-            $smarty $template);
+            $smarty, $template);
         $day_result .= '</select>';
     }

Either I found a way to fool around with svn or a comma is missing.
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5067
Location: Hamburg / Germany

PostPosted: Wed Jul 01, 2009 8:21 pm    Post subject: Reply with quote

Ups,, my fault. Is fixed now,
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP