summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6a8ba2b)
raw | patch | inline | side by side (parent: 6a8ba2b)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 11 Oct 2007 09:32:49 +0000 (09:32 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 11 Oct 2007 09:32:49 +0000 (09:32 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7504 594d385d-05f5-0310-b6e9-bd551577e9d8
include/accept-to-gettext.inc | patch | blob | history |
index 52647c6606ece6f98932726eaa88c394c248a2b4..289cae435a9b8243142d4ceb6d0de43aa1cb7a6d 100644 (file)
function al2gt($gettextlangs, $mime)
{
+ /* Check if ACCEPT_LANGUAGE isset */
+ if(!isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])){
+ $_SERVER["HTTP_ACCEPT_LANGUAGE"] = "";
+ }
/* default to "everything is acceptable", as RFC2616 specifies */
$acceptLang=(($_SERVER["HTTP_ACCEPT_LANGUAGE"] == '') ? '*' :