New: Link to wiki help

This commit is contained in:
Laurent Destailleur 2009-08-24 12:21:46 +00:00
parent 534e9d06c0
commit 3d09d88543

View File

@ -43,12 +43,17 @@ $staticproduct=new Product($db);
$transAreaType = $langs->trans("ProductsAndServicesArea");
$helpurl='';
if (isset($_GET["type"]) && $_GET["type"] == 0)
if (! isset($_GET["type"]))
{
$transAreaType = $langs->trans("ProductsArea");
$helpurl='EN:Module_Products|FR:Module_Produits|ES:Módulo_Productos';
}
if (isset($_GET["type"]) && $_GET["type"] == 1)
if ((isset($_GET["type"]) && $_GET["type"] == 0) || empty($conf->service->enabled))
{
$transAreaType = $langs->trans("ProductsArea");
$helpurl='EN:Module_Products|FR:Module_Produits|ES:Módulo_Productos';
}
if ((isset($_GET["type"]) && $_GET["type"] == 1) || empty($conf->produit->enabled))
{
$transAreaType = $langs->trans("ServicesArea");
$helpurl='EN:Module_Services_En|FR:Module_Services|ES:Módulo_Servicios';