mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
New: Can use absolute url path for help link
This commit is contained in:
parent
b31529c587
commit
6a0877fe6a
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user