- improvement Smarty::compileAllTemplates() exit with a non-zero status code if max errors is reached https://github.com/smarty-php/smarty/pull/402

This commit is contained in:
Uwe Tews
2018-03-17 08:31:40 +01:00
parent a5961606f3
commit 60415e6f2a
3 changed files with 5 additions and 2 deletions

View File

@@ -1,4 +1,7 @@
===== 3.1.32 - dev === ===== 3.1.32 - dev ===
17.03.2018
- improvement Smarty::compileAllTemplates() exit with a non-zero status code if max errors is reached https://github.com/smarty-php/smarty/pull/402
16.03.2018 16.03.2018
- bugfix extends resource did not work with user defined left/right delimiter https://github.com/smarty-php/smarty/issues/419 - bugfix extends resource did not work with user defined left/right delimiter https://github.com/smarty-php/smarty/issues/419

View File

@@ -112,7 +112,7 @@ class Smarty extends Smarty_Internal_TemplateBase
/** /**
* smarty version * smarty version
*/ */
const SMARTY_VERSION = '3.1.32-dev-39'; const SMARTY_VERSION = '3.1.32-dev-40';
/** /**
* define variable scopes * define variable scopes
*/ */

View File

@@ -115,7 +115,7 @@ class Smarty_Internal_Method_CompileAllTemplates
$_smarty->_clearTemplateCache(); $_smarty->_clearTemplateCache();
if ($max_errors !== null && $_error_count === $max_errors) { if ($max_errors !== null && $_error_count === $max_errors) {
echo "\n<br><br>too many errors\n"; echo "\n<br><br>too many errors\n";
exit(); exit(1);
} }
} }
} }