diff --git a/fileRecv.php b/fileRecv.php index 4658a3c..f936c55 100644 --- a/fileRecv.php +++ b/fileRecv.php @@ -33,6 +33,7 @@ try { //Options array( 'help|?' => "Displays usage information.", + 'cron' => "Mandatory option in crontab", 'file=s' => "Manually define the file to process", 'client=s' => "Define the client name for getting the file manually", 'debug' => "Send a mail for debug", @@ -53,7 +54,7 @@ if( isset($opts->help) || count($opts->getOptions())==0 ) } $c = new Zend_Config($application->getOptions()); -$db = Zend_Db::factory($c->profil->metier); +$db = Zend_Db::factory($c->profil->db->metier); Zend_Db_Table::setDefaultAdapter($db); $fluxM = new Application_Model_Sdv1FluxFileOut();