[Xfce4-commits] <www:nick/gettext> Fix php warning.
Nick Schermer
noreply at xfce.org
Sun Dec 5 15:06:02 CET 2010
Updating branch refs/heads/nick/gettext
to be48696fc774fcb2a0915c5ef8f2d8b2e8401e8f (commit)
from 11897533915a1582cb2d31f85ad25dbe99041ff7 (commit)
commit be48696fc774fcb2a0915c5ef8f2d8b2e8401e8f
Author: Nick Schermer <nick at xfce.org>
Date: Sun Dec 5 15:05:15 2010 +0100
Fix php warning.
lib/core.php | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lib/core.php b/lib/core.php
index b0a3a92..12c3653 100644
--- a/lib/core.php
+++ b/lib/core.php
@@ -99,9 +99,10 @@ function lookup_key ($key, $valid_values, $default = null)
function lookup_user_language ($valid_values, $default = 'en')
{
- $accept = strtolower ($_SERVER['HTTP_ACCEPT_LANGUAGE']);
+ $accept = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
if (empty ($accept))
return $default;
+ $accept = strtolower ($accept);
foreach (explode (',', $accept) as $lang)
{
More information about the Xfce4-commits
mailing list