From d9bde6ae87961c99238ba8fce0a29b81e4babb49 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Fri, 2 Sep 2016 18:05:00 +0200 Subject: [PATCH 1/1] Make title configurable Resolves: #11 --- data/config.php.dist | 2 ++ www/www-header.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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'); -- 2.30.2