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
1 changed files with 5 additions and 6 deletions

View File

@ -1,15 +1,14 @@
<?php
/* 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\Logger;
use Icinga\Data\ConfigObject;
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
@ -40,7 +39,7 @@ class ListController extends Controller
public function applicationlogAction()
{
if (! Logger::writesToFile()) {
throw new ActionError('Site not found', 404);
$this->httpNotFound('Page not found');
}
$this->addTitleTab('application log');