ActionController: Don't override reload rules in `redirectXhr()`
`postDispatchXhr()` also only overrides them if enabled.
This commit is contained in:
parent
67285ce262
commit
0b9eecbabc
|
@ -404,10 +404,17 @@ class ActionController extends Zend_Controller_Action
|
|||
|
||||
protected function redirectXhr($url)
|
||||
{
|
||||
$this->getResponse()
|
||||
->setReloadCss($this->reloadCss)
|
||||
->setRerenderLayout($this->rerenderLayout)
|
||||
->redirectAndExit($url);
|
||||
$response = $this->getResponse();
|
||||
|
||||
if ($this->reloadCss) {
|
||||
$response->setReloadCss(true);
|
||||
}
|
||||
|
||||
if ($this->rerenderLayout) {
|
||||
$response->setRerenderLayout(true);
|
||||
}
|
||||
|
||||
$response->redirectAndExit($url);
|
||||
}
|
||||
|
||||
protected function redirectHttp($url)
|
||||
|
|
Loading…
Reference in New Issue