Redirect fonctionnel avec port différent de 80

This commit is contained in:
Michael RICOIS 2012-09-03 15:30:52 +00:00
parent ca6488677b
commit d809739961

View File

@ -52,7 +52,12 @@ class UserController extends Zend_Controller_Action
$refresh = 5;
$url = 'http://'.$_SERVER['SERVER_NAME'].$this->view->url(array(
$baseUrl = 'http://'.$_SERVER['SERVER_NAME'];
if ($_SERVER['SERVER_PORT']!='80') {
$baseUrl.= ':'.$_SERVER['SERVER_PORT'];
}
$url = $baseUrl.$this->view->url(array(
'controller' => 'user',
'action' => 'login',
));