mirror of
https://github.com/Mibew/i18n.git
synced 2025-01-22 13:30:29 +03:00
Remove useless double strings sanitizing
This commit is contained in:
parent
4f6b2624e2
commit
5a6b4e5437
@ -255,14 +255,14 @@ function getstring($text, $raw = false)
|
||||
function getlocal($text, $raw = false)
|
||||
{
|
||||
global $current_locale, $mibew_encoding;
|
||||
$string = myiconv($mibew_encoding, getoutputenc(), getstring_($text, $current_locale), true);
|
||||
$string = myiconv($mibew_encoding, getoutputenc(), getstring_($text, $current_locale, true));
|
||||
return $raw ? $string : sanitize_string($string, 'low', 'moderate');
|
||||
}
|
||||
|
||||
function getlocal_($text, $locale, $raw = false)
|
||||
{
|
||||
global $mibew_encoding;
|
||||
$string = myiconv($mibew_encoding, getoutputenc(), getstring_($text, $locale), true);
|
||||
$string = myiconv($mibew_encoding, getoutputenc(), getstring_($text, $locale, true));
|
||||
return $raw ? $string : sanitize_string($string, 'low', 'moderate');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user