Fix: bad path if product module is disabled

This commit is contained in:
Regis Houssin 2010-04-02 07:57:56 +00:00
parent fce4e60c03
commit 36505d86c4
2 changed files with 3 additions and 3 deletions

View File

@ -138,7 +138,7 @@ if ($_GET["id"] || $_GET["ref"])
// Generation des graphs // Generation des graphs
$WIDTH=380; $WIDTH=380;
$HEIGHT=160; $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 (! file_exists($dir.'/'.$product->id))
{ {
if (create_exdir($dir.'/'.$product->id) < 0) if (create_exdir($dir.'/'.$product->id) < 0)

View File

@ -197,7 +197,7 @@ if ($modulepart)
{ {
$accessallowed=1; $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 // Wrapping for products or services
@ -208,7 +208,7 @@ if ($modulepart)
{ {
$accessallowed=1; $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 // Wrapping for categories