diff --git a/application/controllers/DirigeantController.php b/application/controllers/DirigeantController.php index 68c3a6219..e0f48c487 100644 --- a/application/controllers/DirigeantController.php +++ b/application/controllers/DirigeantController.php @@ -18,16 +18,21 @@ class DirigeantController extends Zend_Controller_Action */ public function listeAction() { + $request = $this->getRequest(); + $autrePage = $this->getRequest()->getParam('apage'); + $siren = substr($this->siret, 0, 9); - $this->view->headTitle()->prepend('Liste des dirigeants'); - $this->view->headTitle()->prepend('Siret '.$this->siret); + if (empty($autrePage)) { + $this->view->headTitle()->prepend('Liste des dirigeants'); + $this->view->headTitle()->prepend('Siret '.$this->siret); + } $ws = new WsScores(); $infos = $ws->getDirigeants($siren); if ($infos === false){ - $this->_forward('soap', 'error'); + $this->forward('soap', 'error'); } $dirigeants = $infos->result->item; diff --git a/application/controllers/IdentiteController.php b/application/controllers/IdentiteController.php index 32c03d3f4..408976eff 100644 --- a/application/controllers/IdentiteController.php +++ b/application/controllers/IdentiteController.php @@ -43,20 +43,19 @@ class IdentiteController extends Zend_Controller_Action */ public function ficheAction() { - //Modification du titre - if( empty($this->siret) ){ - $titre = 'Identifiant '.$this->id; - } else { - $titre = 'Siret '.$this->siret; - } - $this->view->headTitle()->prepend('Identité - '.$titre); - $user = new Scores_Utilisateur(); $autrePage = $this->getRequest()->getParam('apage'); //Récupération des informations if (empty($autrePage)) { + //Modification du titre + if( empty($this->siret) ){ + $titre = 'Identifiant '.$this->id; + } else { + $titre = 'Siret '.$this->siret; + } + $this->view->headTitle()->prepend('Identité - '.$titre); $ws = new WsScores(); $infos = $ws->getIdentite($this->siret, $this->id); if ($infos === false) { @@ -556,7 +555,7 @@ class IdentiteController extends Zend_Controller_Action $nbMonthForRecentLien = 3; $request = $this->getRequest(); - + $autrePage = $this->getRequest()->getParam('apage'); $lienRef = $request->getParam('lienref', null); $user = new Scores_Utilisateur(); @@ -568,7 +567,9 @@ class IdentiteController extends Zend_Controller_Action $this->view->assign('lienref', $lienRef); - $this->view->headTitle()->prepend('Liens inter-entreprises - Id '.$lienRef); + if (empty($autrePage)) { + $this->view->headTitle()->prepend('Liens inter-entreprises - Id '.$lienRef); + } $identite = $ws->getLienRef($lienRef); $this->view->assign('raisonSociale', $identite->raisonSociale); @@ -596,8 +597,9 @@ class IdentiteController extends Zend_Controller_Action } else { $siren = substr($this->siret,0,9); - $this->view->headTitle()->prepend('Liens inter-entreprises - Siren '.$siren); - + if (empty($autrePage)) { + $this->view->headTitle()->prepend('Liens inter-entreprises - Siren '.$siren); + } $session = new Scores_Session_Entreprise($this->siret, $this->id); $this->view->assign('isin', $session->getIsin());