Allow to choose mbstring as recoding engine
This commit is contained in:
parent
a749577ad5
commit
e0fce588d2
@ -32,7 +32,7 @@ $cfg_db['Servers'] = array(
|
||||
'only_db' => 'array'
|
||||
)
|
||||
);
|
||||
$cfg_db['RecodingEngine'] = array('auto', 'iconv', 'recode', 'none');
|
||||
$cfg_db['RecodingEngine'] = array('auto', 'iconv', 'recode', 'mb', 'none');
|
||||
$cfg_db['OBGzip'] = array('auto', true, false);
|
||||
$cfg_db['MemoryLimit'] = 'short_string';
|
||||
$cfg_db['NavigationLogoLinkWindow'] = array('main', 'new');
|
||||
|
||||
@ -766,6 +766,13 @@ class FormDisplay
|
||||
'recode', 'recode'
|
||||
);
|
||||
}
|
||||
if (!function_exists('mb_convert_encoding')) {
|
||||
$opts['values']['mb'] .= ' (' . __('unavailable') . ')';
|
||||
$comment .= ($comment ? ", " : '') . sprintf(
|
||||
__('"%s" requires %s extension'),
|
||||
'mb', 'mbstring'
|
||||
);
|
||||
}
|
||||
$opts['comment'] = $comment;
|
||||
$opts['comment_warning'] = true;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user