mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
fix multibyte test case
put the mb_internal_encoding call in a file which is _always_ loaded
This commit is contained in:
parent
d3772fc605
commit
83e7028ecd
2 changed files with 10 additions and 9 deletions
|
@ -24,6 +24,13 @@ App::uses('CakePlugin', 'Core');
|
||||||
App::uses('L10n', 'I18n');
|
App::uses('L10n', 'I18n');
|
||||||
App::uses('Multibyte', 'I18n');
|
App::uses('Multibyte', 'I18n');
|
||||||
|
|
||||||
|
if (function_exists('mb_internal_encoding')) {
|
||||||
|
$encoding = Configure::read('App.encoding');
|
||||||
|
if (!empty($encoding)) {
|
||||||
|
mb_internal_encoding($encoding);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* I18n handles translation of Text and time format strings.
|
* I18n handles translation of Text and time format strings.
|
||||||
*
|
*
|
||||||
|
|
|
@ -17,12 +17,6 @@
|
||||||
* @since CakePHP(tm) v 1.2.0.6833
|
* @since CakePHP(tm) v 1.2.0.6833
|
||||||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
||||||
*/
|
*/
|
||||||
if (function_exists('mb_internal_encoding')) {
|
|
||||||
$encoding = Configure::read('App.encoding');
|
|
||||||
if (!empty($encoding)) {
|
|
||||||
mb_internal_encoding($encoding);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find position of first occurrence of a case-insensitive string.
|
* Find position of first occurrence of a case-insensitive string.
|
||||||
|
|
Loading…
Reference in a new issue