mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +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 ===
|
===== 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
|
||||||
|
|
||||||
|
@@ -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
|
||||||
*/
|
*/
|
||||||
|
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user