From fa61fdfea420bb770d4390f49fa5e2f379891d21 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 7 May 2012 21:17:26 +0200 Subject: do not show search box when no search adapter configured --- www/www-header.php | 1 + 1 file changed, 1 insertion(+) (limited to 'www/www-header.php') diff --git a/www/www-header.php b/www/www-header.php index c0b18d3..72a2e67 100644 --- a/www/www-header.php +++ b/www/www-header.php @@ -63,6 +63,7 @@ function render($tplname, $vars) $vars['css'] = $GLOBALS['phorkie']['cfg']['css']; $vars['title'] = $GLOBALS['phorkie']['cfg']['title']; $vars['topbar'] = $GLOBALS['phorkie']['cfg']['topbar']; + $vars['db'] = new Database(); $template = $GLOBALS['twig']->loadTemplate($tplname . '.htm'); echo $template->render($vars); -- cgit v1.2.3