Code

Fixed language detection
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 22 May 2006 10:21:14 +0000 (10:21 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 22 May 2006 10:21:14 +0000 (10:21 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3487 594d385d-05f5-0310-b6e9-bd551577e9d8

html/helpviewer.php
include/functions_helpviewer.inc

index a5710b20257a77fb3f65f78b4d7ffdb6b3dd458d..1a68eb4a6b0ea587200ade3fc1eef9df6e632d63 100644 (file)
@@ -25,7 +25,9 @@
 
 error_reporting(0);
 header("Content-type: text/html; charset=UTF-8");
+
 session_start();
+$ui= $_SESSION["ui"];
 $config= $_SESSION['config'];
 
 /* If no config object is found in the session, abort help */
index 579ede3316eb7659ae8a5be9a3890d60817dfc46..64d256a180f1779b2e000be2db1aa7620d7bc25b 100644 (file)
@@ -67,10 +67,7 @@ function genIndex($arr)
     $exists = true;
     $helpdir = "../doc/guide/user/".$helpobject['lang']."/html/".preg_replace("/^.*\//i","",$path)."/";
     if(!is_dir($helpdir)){
-      $helpdir = "../doc/guide/user/en/html/".preg_replace("/^.*\//i","",$path)."/";
-      if(!is_dir($helpdir)){
-        $exists = false;
-      }
+      $exists = false;
     }
     $print_hl = false;
     if($current_hl != $attrs['HEADLINE']){