summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d0d189e)
raw | patch | inline | side by side (parent: d0d189e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Aug 2007 12:58:03 +0000 (12:58 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Aug 2007 12:58:03 +0000 (12:58 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7050 594d385d-05f5-0310-b6e9-bd551577e9d8
include/accept-to-gettext.inc | patch | blob | history |
index 6bf1950e6a1d863becd917306d4ee0cfd7042da7..a108cc21c044f5968e87f32f042dde8ec372efc5 100644 (file)
function al2gt($gettextlangs, $mime)
{
- error_reporting(0);
/* Try to use users primary language */
$ui= get_userinfo();
$gtcs=strtoupper($tmp2[1]);
$noct=@preg_split("/-/",$allang);
+ if(!isset($alscores["*"])){
+ $alscores["*"] = "";
+ }
+
+ if(!isset($alscores[$allang])){
+ $alscores[$allang] = "";
+ }
+
+ if(!isset($alscores[$noct[0]])){
+ $alscores[$noct[0]] = "";
+ }
+
$testvals=array(
array($alscores[$allang], $acscores[$gtcs]),
array($alscores[$noct[0]], $acscores[$gtcs]),
header("Content-Language: $lang");
header("Content-Type: $mime; charset=$charset");
- error_reporting(E_ALL);
return $curgtlang;
}