From 000aad035744f39170cd282a2dfbd43b3745241c Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Sun, 29 Sep 2013 17:33:46 +0000 Subject: [PATCH] =?UTF-8?q?Correct=20database=20cr=C3=A9ation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fileRecv.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();