diff --git a/change_log.txt b/change_log.txt index ca002580..a573e81f 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,4 +1,5 @@ - +15/07/2010 +- bufix {$smarty.template} does include now the relative path, not just filename ===== RC3 ===== diff --git a/libs/sysplugins/smarty_internal_compile_private_special_variable.php b/libs/sysplugins/smarty_internal_compile_private_special_variable.php index 1f473bc5..9a7dbcfb 100644 --- a/libs/sysplugins/smarty_internal_compile_private_special_variable.php +++ b/libs/sysplugins/smarty_internal_compile_private_special_variable.php @@ -55,7 +55,7 @@ class Smarty_Internal_Compile_Private_Special_Variable extends Smarty_Internal_C break; case 'template': - $_template_name = basename($compiler->template->getTemplateFilepath()); + $_template_name = $compiler->template->template_resource; return "'$_template_name'"; case 'current_dir': @@ -97,4 +97,4 @@ class Smarty_Internal_Compile_Private_Special_Variable extends Smarty_Internal_C } } -?> +?> \ No newline at end of file