mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
Merge pull request #141 from m1nd53t/master
set correct path to template in CompileAll
This commit is contained in:
@@ -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<br>", $_dir, '---', $_file;
|
||||
@@ -108,4 +108,4 @@ class Smarty_Internal_Method_CompileAllTemplates
|
||||
echo "\n<br>";
|
||||
return $_count;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user