mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Small performance optimization to previous commit
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7818 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
dc35135dd9
commit
0ec977a02b
1 changed files with 5 additions and 2 deletions
|
@ -23,8 +23,11 @@
|
||||||
* @lastmodified $Date$
|
* @lastmodified $Date$
|
||||||
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
||||||
*/
|
*/
|
||||||
if (function_exists('mb_internal_encoding') && Configure::read('App.encoding') != null) {
|
if (function_exists('mb_internal_encoding')) {
|
||||||
mb_internal_encoding(Configure::read('App.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…
Add table
Reference in a new issue