git.cweiske.de
/
phinde.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not throw exception but send 400
[phinde.git]
/
www
/
www-header.php
diff --git
a/www/www-header.php
b/www/www-header.php
index da0d74cd8cf60a3187b008707b6065147eff7bc8..e5cee94aa092e672fbfe59a6c535b2966ebf012c 100644
(file)
--- a/
www/www-header.php
+++ b/
www/www-header.php
@@
-2,7
+2,6
@@
namespace phinde;
require_once __DIR__ . '/../src/init.php';
namespace phinde;
require_once __DIR__ . '/../src/init.php';
-\Twig_Autoloader::register();
$GLOBALS['twig'] = new \Twig_Environment(
new \Twig_Loader_Filesystem(__DIR__ . '/../data/templates'),
array(
$GLOBALS['twig'] = new \Twig_Environment(
new \Twig_Loader_Filesystem(__DIR__ . '/../data/templates'),
array(
@@
-26,8
+25,8
@@
function render($tplname, $vars = array(), $return = false)
if (!isset($vars['htmlhelper'])) {
//$vars['htmlhelper'] = new HtmlHelper();
}
if (!isset($vars['htmlhelper'])) {
//$vars['htmlhelper'] = new HtmlHelper();
}
- $vars['apptitle'] =
'cweiske.de search'
;
- $vars['base
u
rl'] = '/';
+ $vars['apptitle'] =
$GLOBALS['phinde']['apptitle']
;
+ $vars['base
U
rl'] = '/';
$template = $GLOBALS['twig']->loadTemplate($tplname . '.htm');
if ($return) {
$template = $GLOBALS['twig']->loadTemplate($tplname . '.htm');
if ($return) {