From e716bcef28fafeba34a6a72bc6d435a3cefe0982 Mon Sep 17 00:00:00 2001 From: cajus Date: Sun, 27 Nov 2005 12:52:30 +0000 Subject: [PATCH] Made en to the default language if the native one is not available git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2082 594d385d-05f5-0310-b6e9-bd551577e9d8 --- TODO | 2 -- include/functions_helpviewer.inc | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index 16c5cb06f..d8df20db2 100644 --- a/TODO +++ b/TODO @@ -16,8 +16,6 @@ face these: "Uninitialized string offset: 0". Clicking there a second time, does not produce errors -* Default help to english, if no other language is available - Target for 2.5: =============== diff --git a/include/functions_helpviewer.inc b/include/functions_helpviewer.inc index 27846feed..d41c4457b 100644 --- a/include/functions_helpviewer.inc +++ b/include/functions_helpviewer.inc @@ -67,7 +67,10 @@ function genIndex($arr) $exists = true; $helpdir = "../doc/guide/user/".$helpobject['lang']."/html/".preg_replace("/^.*\//i","",$path)."/"; if(!is_dir($helpdir)){ - $exists = false; + $helpdir = "../doc/guide/user/en/html/".preg_replace("/^.*\//i","",$path)."/"; + if(!is_dir($helpdir)){ + $exists = false; + } } $print_hl = false; if($current_hl != $attrs['HEADLINE']){ -- 2.30.2