|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
yankee Smarty Rookie
Joined: 02 Mar 2009 Posts: 31
|
Posted: Mon Jun 22, 2009 11:24 pm Post subject: Missing argument 3 for smarty_function_html_options() |
|
|
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 |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Wed Jun 24, 2009 4:28 pm Post subject: |
|
|
Thanks for your input. This has been fixed in the SVN now. |
|
Back to top |
|
yankee Smarty Rookie
Joined: 02 Mar 2009 Posts: 31
|
Posted: Wed Jul 01, 2009 7:00 pm Post subject: |
|
|
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 |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Wed Jul 01, 2009 8:21 pm Post subject: |
|
|
Ups,, my fault. Is fixed now, |
|
Back to top |
|
|
|
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
|