From b32e774795ee19b3cec710b7eb2d259fd61ea3f3 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Fri, 25 Nov 2016 18:56:03 +0100 Subject: [PATCH] Remove config --- scripts/calculScoreDate.php | 6 ------ scripts/jobs/enrichissement.php | 3 --- 2 files changed, 9 deletions(-) diff --git a/scripts/calculScoreDate.php b/scripts/calculScoreDate.php index 9912c149..2b3884af 100644 --- a/scripts/calculScoreDate.php +++ b/scripts/calculScoreDate.php @@ -39,12 +39,6 @@ $c = new Zend_Config($application->getOptions()); $db = Zend_Db::factory($c->profil->db->metier); Zend_Db_Table::setDefaultAdapter($db); -require_once APPLICATION_PATH.'/configs/config.php'; -require_once 'framework/fwk.php'; -require_once 'framework/common/chiffres.php'; -require_once 'framework/common/dates.php'; -require_once 'framework/mail/sendMail.php'; - $fp = fopen($file.'-'.date('YmdHis').'.csv', 'w'); $delimiter = ','; $fileHeader = array( diff --git a/scripts/jobs/enrichissement.php b/scripts/jobs/enrichissement.php index 9ad44df8..5c73bb8f 100644 --- a/scripts/jobs/enrichissement.php +++ b/scripts/jobs/enrichissement.php @@ -298,9 +298,6 @@ try { } Zend_Registry::set('doctrine', $conn); -//Chargement des classes metier -require_once APPLICATION_PATH.'/configs/config.php'; - if ($opts->id) { $commandesM = new Application_Model_Commandes($db); $commande = $commandesM->find(intval($opts->id))->current();