- bugfix Smarty::compileAllTemplates ignores $extension parameter https://github.com/smarty-php/smarty/issues/437

https://github.com/smarty-php/smarty/pull/438
This commit is contained in:
Uwe Tews
2018-05-17 13:50:14 +02:00
parent e2aec4d011
commit 87ec44e9f8
3 changed files with 5 additions and 3 deletions

View File

@@ -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

View File

@@ -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
*/

View File

@@ -75,7 +75,7 @@ class Smarty_Internal_Method_CompileAllTemplates
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)) {