diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2016-09-02 18:05:00 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2016-09-02 18:05:00 +0200 |
| commit | d9bde6ae87961c99238ba8fce0a29b81e4babb49 (patch) | |
| tree | fa9bbcbb0a80abf4512fe18064cda68652d38954 | |
| parent | 30a14d8a1e607df134357ac20beebf391e115a2d (diff) | |
| download | phinde-d9bde6ae87961c99238ba8fce0a29b81e4babb49.tar.gz phinde-d9bde6ae87961c99238ba8fce0a29b81e4babb49.zip | |
Make title configurable
Resolves: #11
| -rw-r--r-- | data/config.php.dist | 2 | ||||
| -rw-r--r-- | www/www-header.php | 2 |
2 files changed, 3 insertions, 1 deletions
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 @@ <?php $GLOBALS['phinde'] = array( + //name of the app in the frontend + 'apptitle' => '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'); |
