From d8109dda759cd10b980eccd87e19b8d2d1d47535 Mon Sep 17 00:00:00 2001 From: Kars Frijters Date: Mon, 21 Dec 2015 14:27:26 +0100 Subject: [PATCH] set correct path to template in CompileAll When the template is in a subdirectory of the sourcedir, the the template could not be loaded --- .../sysplugins/smarty_internal_method_compilealltemplates.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/sysplugins/smarty_internal_method_compilealltemplates.php b/libs/sysplugins/smarty_internal_method_compilealltemplates.php index 685fc0c0..3325cd8e 100644 --- a/libs/sysplugins/smarty_internal_method_compilealltemplates.php +++ b/libs/sysplugins/smarty_internal_method_compilealltemplates.php @@ -69,7 +69,7 @@ class Smarty_Internal_Method_CompileAllTemplates if (!substr_compare($_file, $extension, - strlen($extension)) == 0) { continue; } - if ($_fileinfo->getPath() == !substr($_dir, 0, - 1)) { + if ($_fileinfo->getPath() !== substr($_dir, 0, - 1)) { $_file = substr($_fileinfo->getPath(), strlen($_dir)) . DS . $_file; } echo "\n
", $_dir, '---', $_file; @@ -108,4 +108,4 @@ class Smarty_Internal_Method_CompileAllTemplates echo "\n
"; return $_count; } -} \ No newline at end of file +}