From f0c646797411d29df6a923dbad069defa27eb0e0 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Tue, 28 Sep 2010 16:39:52 +0000 Subject: [PATCH] Modification chemin des fichiers --- application/controllers/RefController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/application/controllers/RefController.php b/application/controllers/RefController.php index 49c30116..84eae90d 100644 --- a/application/controllers/RefController.php +++ b/application/controllers/RefController.php @@ -24,8 +24,7 @@ class RefController extends Zend_Controller_Action { //Lecture du nom du fichier $fichier = $this->_getParam('q',''); - - if (!empty($q) && file_exists(APPLICATION_PATH . '/public/fichiers/'.$fichier)) + if (!empty($fichier) && file_exists('fichiers/'.$fichier)) { //Désactivation de la vue $this->_helper->viewRenderer->setNoRender(); @@ -51,7 +50,7 @@ class RefController extends Zend_Controller_Action break; } - $data = file_get_contents(APPLICATION_PATH . '/public/fichiers/'.$fichier); + $data = file_get_contents('fichiers/'.$fichier); $this->getResponse()->setHeader('Content-Length', strlen($data)) ->setHeader('Cache-Control', 'private, max-age=0, must-revalidate')