From f1e819c4e3c002b61e8158ffe4c6d28ec6e4feb0 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 18 Feb 2011 11:32:56 -0200 Subject: Avoiding deprecation notices --- www/inc/l10nget.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'www/inc/l10nget.inc.php') 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; -- cgit v1.2.3