issue #0001481 : Correction chemin
This commit is contained in:
parent
3e4a77c8bb
commit
937d907564
@ -74,7 +74,7 @@ function getPage($url, $curl_data = '', $verbose=false)
|
||||
$debug = false;
|
||||
|
||||
$config = parse_ini_file(dirname(__FILE__).'/../../application/configs/application.ini', true);
|
||||
$directory = $config['production']['path']['data'].'/bodacc/'.$type.'/'.$annee;
|
||||
$directory = $config['production']['profil.path.data'].'/bodacc/'.$type.'/'.$annee;
|
||||
if ( !file_exists($directory) ) mkdir($directory, 0777, true);
|
||||
|
||||
//Define cookie file for storage
|
||||
|
@ -66,7 +66,7 @@ function getPage($url, $curl_data = '', $verbose=false)
|
||||
$debug = false;
|
||||
|
||||
$config = parse_ini_file(dirname(__FILE__).'/../../application/configs/application.ini', true);
|
||||
$directory = $config['production']['path']['data'].'/marques/';
|
||||
$directory = $config['production']['profil.path.data'].'/marques/';
|
||||
if ( !file_exists($directory) ) {
|
||||
echo "Erreur : Répertoire inexistant.\n";
|
||||
exit;
|
||||
|
Loading…
Reference in New Issue
Block a user