Render 'inline' if xhr request, missing use added

This commit is contained in:
Thomas Gelf 2014-02-18 18:42:06 +00:00
parent 139461c6d5
commit b7de09f6ba
1 changed files with 7 additions and 5 deletions

View File

@ -29,13 +29,14 @@
namespace Icinga\Web\Controller;
use \Exception;
use \Zend_Controller_Action;
use \Zend_Controller_Request_Abstract;
use \Zend_Controller_Response_Abstract;
use \Zend_Controller_Action_HelperBroker;
use Exception;
use Zend_Controller_Action;
use Zend_Controller_Request_Abstract;
use Zend_Controller_Response_Abstract;
use Zend_Controller_Action_HelperBroker;
use Icinga\Authentication\Manager as AuthManager;
use Icinga\Application\Benchmark;
use Icinga\Application\Config;
use Icinga\Util\Translator;
use Icinga\Web\Widget\Tabs;
use Icinga\Web\Url;
@ -264,6 +265,7 @@ class ActionController extends Zend_Controller_Action
if ($target !== 'inline') {
$target = ($this->getParam('view') === 'compact') ? 'inline' : 'body';
}
$target = 'inline';
$this->_helper->layout()->setLayout($target);
}
if ($user = $this->getRequest()->getUser()) {