- allow Smarty2 and Smarty3 parameter ordering on display, fetch and create template

This commit is contained in:
Uwe.Tews
2009-09-29 20:36:29 +00:00
parent 3ab56b041e
commit 56e01e8a45
3 changed files with 97 additions and 78 deletions

View File

@@ -292,6 +292,10 @@ class Smarty_Internal_TemplateBase {
*/
public function createTemplate($template, $cache_id = null, $compile_id = null, $parent = null)
{
if (is_object($cache_id)) {
$parent = $cache_id;
$cache_id = null;
}
if (!is_object($template)) {
// we got a template resource
$_templateId = $this->buildTemplateId ($template, $cache_id, $compile_id);