From: Christian Weiske Date: Fri, 2 Sep 2016 16:05:00 +0000 (+0200) Subject: Make title configurable X-Git-Tag: v0.2.0~18 X-Git-Url: https://git.cweiske.de/phinde.git/commitdiff_plain/d9bde6ae87961c99238ba8fce0a29b81e4babb49?hp=30a14d8a1e607df134357ac20beebf391e115a2d Make title configurable Resolves: #11 --- diff --git a/data/config.php.dist b/data/config.php.dist index 9170a9f..5c095ca 100644 --- a/data/config.php.dist +++ b/data/config.php.dist @@ -1,5 +1,7 @@ 'website search', 'elasticsearch' => 'http://127.0.0.1:9200/phinde/', //whitelist of domains that shall be crawled 'domains' => array( diff --git a/www/www-header.php b/www/www-header.php index e7c4542..070c391 100644 --- a/www/www-header.php +++ b/www/www-header.php @@ -26,7 +26,7 @@ function render($tplname, $vars = array(), $return = false) if (!isset($vars['htmlhelper'])) { //$vars['htmlhelper'] = new HtmlHelper(); } - $vars['apptitle'] = 'cweiske.de search'; + $vars['apptitle'] = $GLOBALS['phinde']['apptitle']; $vars['baseUrl'] = '/'; $template = $GLOBALS['twig']->loadTemplate($tplname . '.htm');