Some change for file directory

This commit is contained in:
Michael RICOIS 2012-06-19 15:33:05 +00:00
parent 520f167aaa
commit 5dd639878c

View File

@ -225,8 +225,8 @@ class EnrichissementController extends Zend_Controller_Action
$result = $table->fetchRow($sql);
if(!empty($result)) {
$result = $result->toArray();
$date = explode(' ', $result['dateAdded']);
$path = $config->path->data.'/'.substr($date[0], 0, 7).'/';
$date = substr($result['dateAdded'],0,4).substr($result['dateAdded'],5,2);
$path = $config->path->data.'/'.$date.'/';
$file = $result['fichier'];
}
$content_type = 'application/csv-tab-delimited-table';