mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
- 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:
@@ -1,4 +1,7 @@
|
||||
===== 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
|
||||
- bugfix extends resource did not work with user defined left/right delimiter https://github.com/smarty-php/smarty/issues/419
|
||||
|
||||
|
@@ -112,7 +112,7 @@ class Smarty extends Smarty_Internal_TemplateBase
|
||||
/**
|
||||
* smarty version
|
||||
*/
|
||||
const SMARTY_VERSION = '3.1.32-dev-39';
|
||||
const SMARTY_VERSION = '3.1.32-dev-40';
|
||||
/**
|
||||
* define variable scopes
|
||||
*/
|
||||
|
@@ -115,7 +115,7 @@ class Smarty_Internal_Method_CompileAllTemplates
|
||||
$_smarty->_clearTemplateCache();
|
||||
if ($max_errors !== null && $_error_count === $max_errors) {
|
||||
echo "\n<br><br>too many errors\n";
|
||||
exit();
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user