Use the config path
This commit is contained in:
parent
7196ac3ec1
commit
5bb31b0723
@ -84,7 +84,8 @@ class IndexController extends Zend_Controller_Action
|
||||
$request = $this->getRequest();
|
||||
$file = $request->getParam('file', '');
|
||||
$content_type = 'application/csv-tab-delimited-table';
|
||||
$path = '/sites/dataenrichissement/export/';
|
||||
$c = Zend_Registry::get('config');
|
||||
$path = $c->profil->path->data;
|
||||
//Envoi du fichier sur la sortie standard
|
||||
if ( file_exists($path.$file) ) {
|
||||
header('Content-Transfer-Encoding: none');
|
||||
|
Loading…
Reference in New Issue
Block a user