[bugs] [Bug 940] New - Help system cannot reach help file if components in nondefault directories

bugs@bugs.horde.org bugs@bugs.horde.org
Thu, 2 May 2002 16:20:34 -0300


http://bugs.horde.org/show_bug.cgi?id=940

*** shadow/940	Thu May  2 16:20:34 2002
--- shadow/940.tmp.13882	Thu May  2 16:20:34 2002
***************
*** 0 ****
--- 1,34 ----
+ Bug#: 940
+ Product: Horde
+ Version: 2.0 Stable
+ Platform: PHP Code
+ OS/Version: Linux
+ Status: NEW   
+ Resolution: 
+ Severity: normal
+ Priority: P2
+ Component: Core
+ Area: BUILD
+ AssignedTo: chuck@horde.org                            
+ ReportedBy: ph@rook.cz               
+ URL: 
+ Summary: Help system cannot reach help file if components in nondefault directories
+ 
+ I'm using Horde 2.0 and IMP 3.1.
+ If (for example) IMP resides in directory imp-3.1 (contrary to usual "imp") in
+ Horde tree, Horde help system still tries to reach "./imp/locale/$LANG/help.xml".
+ In my case I've fixed it this way (but should work in general):
+ 
+ diff -u /usr/src/horde-2.0/help.php help.php
+ --- /usr/src/horde-2.0/help.php	Wed Jan  2 18:05:06 2002
+ +++ help.php	Thu May  2 20:58:24 2002
+ @@ -22,7 +22,7 @@
+      Lang::setLang($prefs->getValue('language'));
+  }
+  
+ -$help_dir = ($module == 'horde') ? './locale/' : "./$module/locale/";
+ +$help_dir = $GLOBALS['registry']->getParam('fileroot', $module) . "/locale/";
+  $help_file = $help_dir . "$language/help.xml";
+  
+  if ($show == 'index') {
+