Make title configurable
authorChristian Weiske <cweiske@cweiske.de>
Fri, 2 Sep 2016 16:05:00 +0000 (18:05 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Fri, 2 Sep 2016 16:05:00 +0000 (18:05 +0200)
Resolves: #11

data/config.php.dist
www/www-header.php

index 9170a9f4969940c41a372d03b5e976764034dd4e..5c095caeb409b49cfed1efdc1cd70bb2929639d3 100644 (file)
@@ -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(
index e7c45420c6026835050efd428f6bc0d2d1aadc62..070c391484e3967f317ad353b8c395fa9c442991 100644 (file)
@@ -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');