From c4a824bf2c93356b75ad063a1913334c49c94a46 Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Thu, 15 Jul 2010 14:08:56 +0000 Subject: [PATCH] - bufix {$smarty.template} does include now the relative path, not just filename --- change_log.txt | 3 ++- .../smarty_internal_compile_private_special_variable.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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