Use Controller::httpNotFound() in applicationlog/list

refs #9449
This commit is contained in:
Eric Lippmann 2015-07-28 11:33:33 +02:00
parent ce87b7f036
commit b36b447023

View File

@ -1,15 +1,14 @@
<?php <?php
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */ /* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
use Icinga\Web\Controller;
use Icinga\Web\Url;
use Icinga\Web\Widget\Tabextension\DashboardAction;
use Icinga\Web\Widget\Tabextension\OutputFormat;
use Icinga\Application\Config; use Icinga\Application\Config;
use Icinga\Application\Logger; use Icinga\Application\Logger;
use Icinga\Data\ConfigObject; use Icinga\Data\ConfigObject;
use Icinga\Protocol\File\FileReader; use Icinga\Protocol\File\FileReader;
use \Zend_Controller_Action_Exception as ActionError; use Icinga\Web\Controller;
use Icinga\Web\Url;
use Icinga\Web\Widget\Tabextension\DashboardAction;
use Icinga\Web\Widget\Tabextension\OutputFormat;
/** /**
* Class ListController * Class ListController
@ -40,7 +39,7 @@ class ListController extends Controller
public function applicationlogAction() public function applicationlogAction()
{ {
if (! Logger::writesToFile()) { if (! Logger::writesToFile()) {
throw new ActionError('Site not found', 404); $this->httpNotFound('Page not found');
} }
$this->addTitleTab('application log'); $this->addTitleTab('application log');