mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
Render 'inline' if xhr request, missing use added
This commit is contained in:
parent
139461c6d5
commit
b7de09f6ba
@ -29,13 +29,14 @@
|
|||||||
|
|
||||||
namespace Icinga\Web\Controller;
|
namespace Icinga\Web\Controller;
|
||||||
|
|
||||||
use \Exception;
|
use Exception;
|
||||||
use \Zend_Controller_Action;
|
use Zend_Controller_Action;
|
||||||
use \Zend_Controller_Request_Abstract;
|
use Zend_Controller_Request_Abstract;
|
||||||
use \Zend_Controller_Response_Abstract;
|
use Zend_Controller_Response_Abstract;
|
||||||
use \Zend_Controller_Action_HelperBroker;
|
use Zend_Controller_Action_HelperBroker;
|
||||||
use Icinga\Authentication\Manager as AuthManager;
|
use Icinga\Authentication\Manager as AuthManager;
|
||||||
use Icinga\Application\Benchmark;
|
use Icinga\Application\Benchmark;
|
||||||
|
use Icinga\Application\Config;
|
||||||
use Icinga\Util\Translator;
|
use Icinga\Util\Translator;
|
||||||
use Icinga\Web\Widget\Tabs;
|
use Icinga\Web\Widget\Tabs;
|
||||||
use Icinga\Web\Url;
|
use Icinga\Web\Url;
|
||||||
@ -264,6 +265,7 @@ class ActionController extends Zend_Controller_Action
|
|||||||
if ($target !== 'inline') {
|
if ($target !== 'inline') {
|
||||||
$target = ($this->getParam('view') === 'compact') ? 'inline' : 'body';
|
$target = ($this->getParam('view') === 'compact') ? 'inline' : 'body';
|
||||||
}
|
}
|
||||||
|
$target = 'inline';
|
||||||
$this->_helper->layout()->setLayout($target);
|
$this->_helper->layout()->setLayout($target);
|
||||||
}
|
}
|
||||||
if ($user = $this->getRequest()->getUser()) {
|
if ($user = $this->getRequest()->getUser()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user