issue #0001481 : Correction chemin

This commit is contained in:
Michael RICOIS 2013-01-24 09:43:36 +00:00
parent 3e4a77c8bb
commit 937d907564
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;