Skip to content

Commit

Permalink
Merge pull request #141 from m1nd53t/master
Browse files Browse the repository at this point in the history
set correct path to template in CompileAll
  • Loading branch information
uwetews committed Dec 21, 2015
2 parents fa482f0 + d8109dd commit b226860
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected function compileAll(Smarty $smarty, $extension, $force_compile, $time_
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;
Expand Down Expand Up @@ -108,4 +108,4 @@ protected function compileAll(Smarty $smarty, $extension, $force_compile, $time_
echo "\n<br>";
return $_count;
}
}
}

0 comments on commit b226860

Please sign in to comment.