Error Controller: Move close tab creation to template

This commit is contained in:
Marius Hein 2015-02-02 12:08:20 +01:00
parent 190c1e8f04
commit 8c24dde17b
2 changed files with 1 additions and 2 deletions

View File

@ -19,7 +19,6 @@ class ErrorController extends ActionController
{
$error = $this->_getParam('error_handler');
$exception = $error->exception;
$this->getTabs()->showOnlyCloseButton();
Logger::error($exception);
Logger::error('Stacktrace: %s', $exception->getTraceAsString());

View File

@ -1,5 +1,5 @@
<div class="controls">
<?= $this->tabs->render($this) ?>
<?= $this->tabs->showOnlyCloseButton() ?>
<?php if ($this->title): ?>
<h1><?= $this->escape($title) ?></h1>
<?php endif ?>