Skip to content

Commit

Permalink
- bugfix Smarty::compileAllTemplates ignores $extension parameter #437
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Tews committed May 17, 2018
1 parent e2aec4d commit 87ec44e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion change_log.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
===== 3.1.33-dev-3 =====
===== 3.1.33-dev-4 =====
17.05.2018
- Smarty::compileAllTemplates ignores `$extension` parameter https://github.com/smarty-php/smarty/issues/437
https://github.com/smarty-php/smarty/pull/438
- improvement do not compute total property in {foreach} if not needed https://github.com/smarty-php/smarty/issues/443
- bugfix plugins may not be loaded when setMergeCompiledIncludes is true https://github.com/smarty-php/smarty/issues/435

Expand Down
2 changes: 1 addition & 1 deletion libs/Smarty.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class Smarty extends Smarty_Internal_TemplateBase
/**
* smarty version
*/
const SMARTY_VERSION = '3.1.33-dev-3';
const SMARTY_VERSION = '3.1.33-dev-4';
/**
* define variable scopes
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected function compileAll(Smarty $smarty,
if (substr(basename($_fileinfo->getPathname()), 0, 1) === '.' || strpos($_file, '.svn') !== false) {
continue;
}
if (!substr_compare($_file, $extension, -strlen($extension)) === 0) {
if (substr_compare($_file, $extension, -strlen($extension)) !== 0) {
continue;
}
if ($_fileinfo->getPath() !== substr($_dir, 0, -1)) {
Expand Down

0 comments on commit 87ec44e

Please sign in to comment.