mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Bootstrap Configure after the mb_* shims have been defined.
By bootstrapping after the shims have been defined allows the shims to be used by Inflector which is often involved with bootstrapping. Refs #7135
This commit is contained in:
parent
4d452812c0
commit
26ab829d5a
1 changed files with 12 additions and 11 deletions
|
@ -172,17 +172,6 @@ Configure::write('App.imageBaseUrl', IMAGES_URL);
|
|||
Configure::write('App.cssBaseUrl', CSS_URL);
|
||||
Configure::write('App.jsBaseUrl', JS_URL);
|
||||
|
||||
Configure::bootstrap(isset($boot) ? $boot : true);
|
||||
|
||||
if (function_exists('mb_internal_encoding')) {
|
||||
$encoding = Configure::read('App.encoding');
|
||||
if (!empty($encoding)) {
|
||||
mb_internal_encoding($encoding);
|
||||
}
|
||||
if (!empty($encoding) && function_exists('mb_regex_encoding')) {
|
||||
mb_regex_encoding($encoding);
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('mb_stripos')) {
|
||||
|
||||
|
@ -438,3 +427,15 @@ if (!function_exists('mb_encode_mimeheader')) {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
Configure::bootstrap(isset($boot) ? $boot : true);
|
||||
|
||||
if (function_exists('mb_internal_encoding')) {
|
||||
$encoding = Configure::read('App.encoding');
|
||||
if (!empty($encoding)) {
|
||||
mb_internal_encoding($encoding);
|
||||
}
|
||||
if (!empty($encoding) && function_exists('mb_regex_encoding')) {
|
||||
mb_regex_encoding($encoding);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue