Modification chemin de stockage fichier bdf, issue #0000290

This commit is contained in:
Michael RICOIS 2010-11-04 09:46:12 +00:00
parent 534a4eb83d
commit 41ad1a1fe9

View File

@ -22,7 +22,8 @@ function displayModule($req, $module, $service, $listModules)
} }
else else
{ {
$filename = PATH_DATA.'/bdf/bdf_'.$service.'_'.$req.'_'.$module.'.html'; $filename = PATH_SITE.'/cache/bdf/'.
'bdf_'.$service.'_'.$req.'_'.$module.'.html';
} }
//@todo : Ajouter timeover //@todo : Ajouter timeover
if($filename!==false && file_exists($filename)) if($filename!==false && file_exists($filename))
@ -34,7 +35,6 @@ function displayModule($req, $module, $service, $listModules)
$content = trim(bdf_loadpage($url)); $content = trim(bdf_loadpage($url));
if( !empty($content) && $filename!==false ) if( !empty($content) && $filename!==false )
{ {
if(!file_exists(PATH_DATA.'/bdf')) mkdir(PATH_DATA.'/bdf');
file_put_contents($filename, $content); file_put_contents($filename, $content);
} }
} }