From: cajus Date: Sun, 27 Nov 2005 12:52:30 +0000 (+0000) Subject: Made en to the default language if the native one is not available X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e716bcef28fafeba34a6a72bc6d435a3cefe0982;p=gosa.git 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 --- 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']){