summaryrefslogtreecommitdiff
path: root/inc/common.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/common.php')
-rw-r--r--inc/common.php21
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