ActionController: remove obsolete code

This commit is contained in:
Thomas Gelf 2014-06-22 15:20:55 +02:00
parent 631603aba3
commit b4f8ef74fa
1 changed files with 0 additions and 9 deletions

View File

@ -317,15 +317,6 @@ class ActionController extends Zend_Controller_Action
$url = Url::fromPath('/authentication/login');
if ($this->getRequest()->isXmlHttpRequest()) {
$url->setParam('_render', 'layout');
/*
$this->_response->setHttpResponseCode(401);
$this->_helper->json(
array(
'exception' => 'You are not logged in',
'redirectTo' => Url::fromPath('/authentication/login')->getAbsoluteUrl()
)
);
*/
}
$url->setParam('redirect', $afterLogin);
$this->redirectNow($url);