Code

Made en to the default language if the native one is not available
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sun, 27 Nov 2005 12:52:30 +0000 (12:52 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sun, 27 Nov 2005 12:52:30 +0000 (12:52 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2082 594d385d-05f5-0310-b6e9-bd551577e9d8

TODO
include/functions_helpviewer.inc

diff --git a/TODO b/TODO
index 16c5cb06fa44ecbf7bfbd243cb0a2b8642550bef..d8df20db255929a73949ce14578ca75dcdca0f60 100644 (file)
--- 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:
 ===============
index 27846feed03e4d60403060d3bc495616718ee34d..d41c4457b7ed1bcb70b01e07c70c3789e2ee73de 100644 (file)
@@ -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']){