From 6a0877fe6af78b587276e6b2a2faf93475ea735d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 24 Feb 2009 21:54:18 +0000 Subject: [PATCH] New: Can use absolute url path for help link --- htdocs/main.inc.php | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 6ac68cbdbb3..5f3d8f4f9eb 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -935,9 +935,21 @@ function left_menu($menu_array, $helppagename='', $moresearchform='') $langs->load("help"); $helpbaseurl=''; - if ($langs->defaultlang == "fr_FR") $helpbaseurl='http://wiki.dolibarr.org/index.php/%s'; - - $helppage=$langs->trans($helppagename); + if (eregi('^http',$helppagename)) + { + // If complete URL + $helpbaseurl='%s'; + $helppage=$helppagename; + } + else + { + // If relatvie URL + if ($langs->defaultlang == "fr_FR") + { + $helpbaseurl='http://wiki.dolibarr.org/index.php/%s'; + } + $helppage=$langs->trans($helppagename); + } if ($helpbaseurl) {