Optimize imports in the SearchDashboard

refs #8668
This commit is contained in:
Eric Lippmann 2015-03-12 18:48:59 +01:00
parent dc6b472ec9
commit 03f78a06fb
1 changed files with 5 additions and 6 deletions

View File

@ -3,11 +3,9 @@
namespace Icinga\Web\Widget;
use Zend_Controller_Action_Exception;
use Icinga\Application\Icinga;
use Icinga\Application\Modules\Module;
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
@ -33,13 +31,14 @@ class SearchDashboard extends Dashboard
/**
* Renders the output
*
* @return string
* @throws \Zend_Controller_Action_Exception
* @return string
*
* @throws Zend_Controller_Action_Exception
*/
public function render()
{
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();
}