Modification chemin de stockage fichier bdf, issue #0000290
This commit is contained in:
parent
534a4eb83d
commit
41ad1a1fe9
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user