Code

Updated language detection
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 3 Nov 2005 10:45:59 +0000 (10:45 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 3 Nov 2005 10:45:59 +0000 (10:45 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1816 594d385d-05f5-0310-b6e9-bd551577e9d8

html/helpviewer.php

index 7de5c2ece33b0bef39f2ca8d00b7db36a020b6fa..05f31f494e70b5f15bd3735983daa8f05b370c13 100644 (file)
@@ -74,7 +74,8 @@ if(isset($_SESSION['helpobject'])){
   $helpobject['helpconf']     = $_SESSION['plist']->gen_headlines();
 }
 
-$lang =  preg_replace("/_.*$/","",get_browser_language());
+$lang =  get_browser_language();
+$lang = $lang[0].$lang[1];
 
 $helpobject['lang']           = $lang;  
 $defaultpage                  = "index.html";                       // alternative file, shown on error, or on first call