mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
- bugfix test MBString availability through mb_split(), as it could've been compiled without regex support (--enable-mbregex). Either we get MBstring's full package, or we pretend it's not there at all.
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
===== trunk =====
|
||||
22.08.2012
|
||||
- bugfix test MBString availability through mb_split, as it could've been compiled without regex support (--enable-mbregex).
|
||||
Either we get MBstring's full package, or we pretend it's not there at all.
|
||||
|
||||
21.08.2012
|
||||
- bugfix $auto_literal = false did not work with { block} tags in child templates
|
||||
(problem was reintroduced after fix in 3.1.7)(Forum Topic 20581)
|
||||
|
@@ -57,7 +57,7 @@ if (!defined('SMARTY_PLUGINS_DIR')) {
|
||||
define('SMARTY_PLUGINS_DIR', SMARTY_DIR . 'plugins' . DS);
|
||||
}
|
||||
if (!defined('SMARTY_MBSTRING')) {
|
||||
define('SMARTY_MBSTRING', function_exists('mb_strlen'));
|
||||
define('SMARTY_MBSTRING', function_exists('mb_split'));
|
||||
}
|
||||
if (!defined('SMARTY_RESOURCE_CHAR_SET')) {
|
||||
// UTF-8 can only be done properly when mbstring is available!
|
||||
|
Reference in New Issue
Block a user