From 79811e0f53266d10fe488fb2ad5d8225cfade5d3 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 22 May 2006 10:21:14 +0000 Subject: [PATCH] Fixed language detection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3487 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/helpviewer.php | 2 ++ include/functions_helpviewer.inc | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/html/helpviewer.php b/html/helpviewer.php index a5710b202..1a68eb4a6 100644 --- a/html/helpviewer.php +++ b/html/helpviewer.php @@ -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 */ diff --git a/include/functions_helpviewer.inc b/include/functions_helpviewer.inc index 579ede331..64d256a18 100644 --- a/include/functions_helpviewer.inc +++ b/include/functions_helpviewer.inc @@ -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']){ -- 2.30.2