Redirection avis de situation Insee

This commit is contained in:
Michael RICOIS 2016-03-15 16:14:46 +00:00
parent 47aa8d5120
commit 304942f6eb

View File

@ -1220,9 +1220,11 @@ class IdentiteController extends Zend_Controller_Action
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
if (APPLICATION_ENV == 'staging' || true) {
$this->redirect('http://avis-situation-sirene.insee.fr/');
} else {
// ==> Start
$avis = new Scores_Insee_AvisSituation($this->siret);
if (!$avis->erreur()){
$avis->erreurcpt('raz');
$body = $avis->get('pdf', 1);
@ -1250,6 +1252,7 @@ class IdentiteController extends Zend_Controller_Action
echo $avis->erreurmsg();
}
}
}
/**
* Téléchargement des cartes IRIS