mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 07:14:35 +02:00
parent
dc6b472ec9
commit
03f78a06fb
@ -3,11 +3,9 @@
|
|||||||
|
|
||||||
namespace Icinga\Web\Widget;
|
namespace Icinga\Web\Widget;
|
||||||
|
|
||||||
|
use Zend_Controller_Action_Exception;
|
||||||
use Icinga\Application\Icinga;
|
use Icinga\Application\Icinga;
|
||||||
use Icinga\Application\Modules\Module;
|
|
||||||
use Icinga\Web\Url;
|
use Icinga\Web\Url;
|
||||||
use Icinga\Web\Widget\Dashboard\Pane;
|
|
||||||
use Zend_Controller_Action_Exception as ActionError;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class SearchDashboard display multiple search views on a single search page
|
* Class SearchDashboard display multiple search views on a single search page
|
||||||
@ -33,13 +31,14 @@ class SearchDashboard extends Dashboard
|
|||||||
/**
|
/**
|
||||||
* Renders the output
|
* Renders the output
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
* @throws \Zend_Controller_Action_Exception
|
*
|
||||||
|
* @throws Zend_Controller_Action_Exception
|
||||||
*/
|
*/
|
||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
if (! $this->getPane(self::SEARCH_PANE)->hasDashlets()) {
|
if (! $this->getPane(self::SEARCH_PANE)->hasDashlets()) {
|
||||||
throw new ActionError('Site not found', 404);
|
throw new Zend_Controller_Action_Exception(t('Page not found'), 404);
|
||||||
}
|
}
|
||||||
return parent::render();
|
return parent::render();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user