From 357f43cae8cb4fedb599ba339f2c5f7eede1ad1a Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Mon, 30 Jul 2012 13:29:14 +0000 Subject: [PATCH] Correct ipari access --- application/controllers/RechercheController.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/application/controllers/RechercheController.php b/application/controllers/RechercheController.php index 4f1fb0f60..5232425ad 100644 --- a/application/controllers/RechercheController.php +++ b/application/controllers/RechercheController.php @@ -363,7 +363,7 @@ class RechercheController extends Zend_Controller_Action //Giant if( !empty($params['pays']) && $type == 'ent' ){ Zend_Registry::get('firebug')->info('RECHERCHE GIANT'); - $this->_forward('search', 'giant', null, $params); + $this->_forward('search', 'international', null, $params); //Recherche } else { @@ -444,7 +444,7 @@ class RechercheController extends Zend_Controller_Action $criteres['actif'] = $filtres[$filtre]['value']; - $reponse = $ws->searchEntreprise($criteres, $position); + $reponse = $ws->searchEntreprise($criteres, $position); unset($criteres['actif']); @@ -743,11 +743,13 @@ class RechercheController extends Zend_Controller_Action public function ipariAction() { - $user = new Scores_Utilisateur(); + $siret = $this->getRequest()->getParam('siret'); + + $user = new Scores_Utilisateur(); $url = 'http://ipari.scores-decisions.com/?action=logon&login='.$user->getLogin(). '&hach='.$user->getPassword().'&pass='; - if (!empty($this->siret)){ - $url.= '&siret='.$this->siret; + if (!empty($siret)){ + $url.= '&siret='.$siret; } $this->_redirect($url); }