mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 06:44:33 +02:00
Monitoring\Controller: Drop `compactView' property, as it's not used anywere
This commit is contained in:
parent
5e92171ab7
commit
32e8b606b4
@ -21,16 +21,6 @@ class Controller extends IcingaWebController
|
|||||||
*/
|
*/
|
||||||
protected $backend;
|
protected $backend;
|
||||||
|
|
||||||
/**
|
|
||||||
* Compact layout name
|
|
||||||
*
|
|
||||||
* Set to a string containing the compact layout name to use when
|
|
||||||
* 'compact' is set as the layout parameter, otherwise null
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
protected $compactView;
|
|
||||||
|
|
||||||
protected function moduleInit()
|
protected function moduleInit()
|
||||||
{
|
{
|
||||||
$this->backend = Backend::createBackend($this->_getParam('backend'));
|
$this->backend = Backend::createBackend($this->_getParam('backend'));
|
||||||
@ -39,10 +29,6 @@ class Controller extends IcingaWebController
|
|||||||
|
|
||||||
protected function handleFormatRequest($query)
|
protected function handleFormatRequest($query)
|
||||||
{
|
{
|
||||||
if ($this->compactView !== null && ($this->_getParam('view', false) === 'compact')) {
|
|
||||||
$this->_helper->viewRenderer($this->compactView);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($this->_getParam('format') === 'sql') {
|
if ($this->_getParam('format') === 'sql') {
|
||||||
echo '<pre>'
|
echo '<pre>'
|
||||||
. htmlspecialchars(wordwrap($query->dump()))
|
. htmlspecialchars(wordwrap($query->dump()))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user