Skip to content
Snippets Groups Projects
Commit 8493b672 authored by efalcy's avatar efalcy
Browse files

Arte VOD : remplace le redirect modules/artevod par du javascript (le redirect...

Arte VOD : remplace le redirect modules/artevod par du javascript (le redirect provoque un systematique "site en maintenance" sur le site d'arte vod
parent 19a05b95
No related merge requests found
......@@ -46,8 +46,13 @@ class ModulesController extends Zend_Controller_Action {
public function checkNotifyMessage($ressource_link, $url) {
if (strlen($url)>0)
return $this->_redirect($url);
if (strlen($url)>0) {
$viewRenderer = $this->getHelper('ViewRenderer');
$viewRenderer->setNoRender();
$this->getResponse()->setHeader('Content-Type', 'text/html;charset=utf-8');
$this->getResponse()->setBody('<script>window.location="'.$url.'";</script>');
return ;
}
$this->_helper->notify($ressource_link->getMessage());
return $this->_redirect($this->_request->getServer('HTTP_REFERER'));
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment