Fix: bad path if product module is disabled
This commit is contained in:
parent
fce4e60c03
commit
36505d86c4
@ -138,7 +138,7 @@ if ($_GET["id"] || $_GET["ref"])
|
||||
// Generation des graphs
|
||||
$WIDTH=380;
|
||||
$HEIGHT=160;
|
||||
$dir = $conf->produit->dir_temp;
|
||||
$dir = (!empty($conf->produit->dir_temp)?$conf->produit->dir_temp:$conf->service->dir_temp);
|
||||
if (! file_exists($dir.'/'.$product->id))
|
||||
{
|
||||
if (create_exdir($dir.'/'.$product->id) < 0)
|
||||
|
||||
@ -197,7 +197,7 @@ if ($modulepart)
|
||||
{
|
||||
$accessallowed=1;
|
||||
}
|
||||
$original_file=$conf->produit->dir_temp.'/'.$original_file;
|
||||
$original_file=(!empty($conf->produit->dir_temp)?$conf->produit->dir_temp:$conf->service->dir_temp).'/'.$original_file;
|
||||
}
|
||||
|
||||
// Wrapping for products or services
|
||||
@ -208,7 +208,7 @@ if ($modulepart)
|
||||
{
|
||||
$accessallowed=1;
|
||||
}
|
||||
$original_file=$conf->produit->dir_output.'/'.$original_file;
|
||||
$original_file=(!empty($conf->produit->dir_temp)?$conf->produit->dir_temp:$conf->service->dir_temp).'/'.$original_file;
|
||||
}
|
||||
|
||||
// Wrapping for categories
|
||||
|
||||
Loading…
Reference in New Issue
Block a user