From 67a01a01f883166a6d75abb4a69b12da80d74890 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Fri, 15 Nov 2013 09:08:53 +0000 Subject: [PATCH] Change amount config --- application/controllers/ReportController.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/application/controllers/ReportController.php b/application/controllers/ReportController.php index 7d70040..38bd90f 100644 --- a/application/controllers/ReportController.php +++ b/application/controllers/ReportController.php @@ -159,11 +159,10 @@ class ReportController extends Zend_Controller_Action $this->view->AdresseL2 = $session->CmdAdresseL2; } + $c = Zend_Registry::get('config'); + $this->view->montant = $c->profil->report->montant . " €"; + if ( !isset($session->CmdID) || empty($session->CmdID) ) { - - $c = Zend_Registry::get('config'); - $this->view->montant = $c->profil->report->montant . " €"; - //Get the report if (intval($siren)>100) { $login = $c->profil->report->username; @@ -172,7 +171,6 @@ class ReportController extends Zend_Controller_Action $html = $report->getContent(); if ( $html !== false ) { - $c = Zend_Registry::get('config'); $pathCmd = $c->profil->path->data; $id = uniqid();