From 68b83f591d357666eaebede929c132ba995c88e5 Mon Sep 17 00:00:00 2001 From: "Uwe.Tews@googlemail.com" Date: Tue, 30 Sep 2014 23:20:56 +0000 Subject: [PATCH] - bugfix template resource of inheritance blocks could get invalid if the default resource type is not 'file'(Issue 202) --- change_log.txt | 3 +++ libs/sysplugins/smarty_internal_compile_block.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/change_log.txt b/change_log.txt index 906a1d30..ef0c3347 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,4 +1,7 @@ ===== 3.1.20-dev ===== (xx.xx.2014) + 01.10.2014 + - bugfix template resource of inheritance blocks could get invalid if the default resource type is not 'file'(Issue 202) + 02.08.2014 - bugfix modifier wordwrap did output break string wrong if first word was exceeding length with cut = true (topic 25193) diff --git a/libs/sysplugins/smarty_internal_compile_block.php b/libs/sysplugins/smarty_internal_compile_block.php index 921d807e..52062090 100644 --- a/libs/sysplugins/smarty_internal_compile_block.php +++ b/libs/sysplugins/smarty_internal_compile_block.php @@ -377,7 +377,7 @@ class Smarty_Internal_Compile_Private_Child_Block extends Smarty_Internal_Compil // update template with original template resource of {block} if (trim($_attr['type'], "'") == 'file') { - $compiler->template->template_resource = realpath(trim($_attr['file'], "'")); + $compiler->template->template_resource = 'file:' . realpath(trim($_attr['file'], "'")); } else { $compiler->template->template_resource = trim($_attr['resource'], "'"); }