diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2013-02-25 14:50:59 +0000 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2013-02-25 14:50:59 +0000 |
commit | 1fe0882c56ea31e738540e942b743966927415fd (patch) | |
tree | c3324566ada64f09775b35bc989592c7701c32d4 /inc/common.php | |
parent | 177daee5492e8c3cdfdb950cdf61a6798f7a9586 (diff) | |
parent | 058fd09655df42c72f3c447e3b9561e4909e978d (diff) | |
download | rpg-1fe0882c56ea31e738540e942b743966927415fd.tar.gz rpg-1fe0882c56ea31e738540e942b743966927415fd.tar.bz2 |
Merge branch 'master' into FS#2415
Diffstat (limited to 'inc/common.php')
-rw-r--r-- | inc/common.php | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/inc/common.php b/inc/common.php index 5c28cf9c3..83c4557c6 100644 --- a/inc/common.php +++ b/inc/common.php @@ -1207,27 +1207,6 @@ function getGoogleQuery() { } /** - * Try to set correct locale - * - * @deprecated No longer used - * @author Andreas Gohr <andi@splitbrain.org> - */ -function setCorrectLocale() { - global $conf; - global $lang; - - $enc = strtoupper($lang['encoding']); - foreach($lang['locales'] as $loc) { - //try locale - if(@setlocale(LC_ALL, $loc)) return; - //try loceale with encoding - if(@setlocale(LC_ALL, "$loc.$enc")) return; - } - //still here? try to set from environment - @setlocale(LC_ALL, ""); -} - -/** * Return the human readable size of a file * * @param int $size A file size |