aboutsummaryrefslogtreecommitdiff
path: root/www/inc/l10nget.inc.php
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-02-18 11:32:56 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-02-18 11:32:56 -0200
commitf1e819c4e3c002b61e8158ffe4c6d28ec6e4feb0 (patch)
tree7e60d3391a44c0b597d23f554b58d7252bf5f382 /www/inc/l10nget.inc.php
parent43635311c43229b70818ad78b9b1786640e4f440 (diff)
downloadoriginal-f1e819c4e3c002b61e8158ffe4c6d28ec6e4feb0.tar.gz
original-f1e819c4e3c002b61e8158ffe4c6d28ec6e4feb0.tar.bz2
Avoiding deprecation notices
Diffstat (limited to 'www/inc/l10nget.inc.php')
-rw-r--r--www/inc/l10nget.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/inc/l10nget.inc.php b/www/inc/l10nget.inc.php
index f04b18c..cdc3418 100644
--- a/www/inc/l10nget.inc.php
+++ b/www/inc/l10nget.inc.php
@@ -5,7 +5,7 @@ function get_lang_from_agent($accept) {
$acceptarr = explode("," , $accept);
foreach ($acceptarr as $lang) {
//get rid of trailing garbage
- $lang = ereg_replace("^(.*)\;.*","\\1", $lang);
+ $lang = preg_replace("/^(.*)\;.*/","\\1", $lang);
if (is_dir("l10n/$lang")) {
return $lang;
exit;