Use the config path
This commit is contained in:
parent
677390d46a
commit
f8ff8285f5
@ -85,7 +85,7 @@ class IndexController extends Zend_Controller_Action
|
||||
$file = $request->getParam('file', '');
|
||||
$content_type = 'application/csv-tab-delimited-table';
|
||||
$c = Zend_Registry::get('config');
|
||||
$path = $c->profil->path->data . DIRECTORY_SEPARATOR;
|
||||
$path = $c->profil->path->data . DIRECTORY_SEPARATOR . 'export' . DIRECTORY_SEPARATOR;
|
||||
//Envoi du fichier sur la sortie standard
|
||||
if ( file_exists($path.$file) ) {
|
||||
header('Content-Transfer-Encoding: none');
|
||||
@ -98,7 +98,7 @@ class IndexController extends Zend_Controller_Action
|
||||
ini_set('zlib.output_compression', '0');
|
||||
echo file_get_contents($path.$file);
|
||||
} else {
|
||||
echo 'Impossible de charger le fichier.';
|
||||
echo "Impossible de charger le fichier. ($path$file)";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user