Merge pull request #141 from m1nd53t/master

set correct path to template in CompileAll
This commit is contained in:
uwetews
2015-12-21 15:05:53 +01:00

View File

@@ -69,7 +69,7 @@ class Smarty_Internal_Method_CompileAllTemplates
if (!substr_compare($_file, $extension, - strlen($extension)) == 0) { if (!substr_compare($_file, $extension, - strlen($extension)) == 0) {
continue; continue;
} }
if ($_fileinfo->getPath() == !substr($_dir, 0, - 1)) { if ($_fileinfo->getPath() !== substr($_dir, 0, - 1)) {
$_file = substr($_fileinfo->getPath(), strlen($_dir)) . DS . $_file; $_file = substr($_fileinfo->getPath(), strlen($_dir)) . DS . $_file;
} }
echo "\n<br>", $_dir, '---', $_file; echo "\n<br>", $_dir, '---', $_file;