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");
|
$langs->load("help");
|
||||||
|
|
||||||
$helpbaseurl='';
|
$helpbaseurl='';
|
||||||
if ($langs->defaultlang == "fr_FR") $helpbaseurl='http://wiki.dolibarr.org/index.php/%s';
|
if (eregi('^http',$helppagename))
|
||||||
|
{
|
||||||
$helppage=$langs->trans($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)
|
if ($helpbaseurl)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user