Fix static call of SearchDashboard::search()

refs #9644
This commit is contained in:
Eric Lippmann 2015-07-24 13:34:11 +02:00
parent 75147d6c62
commit 8d7f32cac1
1 changed files with 7 additions and 4 deletions

View File

@ -1,8 +1,11 @@
<?php
use Icinga\Web\Widget\SearchDashboard;
?>
<? if (SearchDashboard::search('dummy')->getPane('search')->hasDashlets()): ?>
use Icinga\Web\Widget\SearchDashboard;
$searchDashboard = new SearchDashboard();
$searchDashboard->setUser($this->Auth()->getUser());
if ($searchDashboard->search('dummy')->getPane('search')->hasDashlets()): ?>
<form action="<?= $this->href('search') ?>" method="get" role="search">
<input
type="text" name="q" id="search" class="search" placeholder="<?= $this->translate('Search') ?> &hellip;"