X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/43ef6e8dfd4345262f7b974506261e0827bfecae..8c40f2a64ae2ba63a1ed6c89cb7ce8a4b07e4dd1:/www/www-header.php diff --git a/www/www-header.php b/www/www-header.php index 3fa4e0e..5381eed 100644 --- a/www/www-header.php +++ b/www/www-header.php @@ -40,9 +40,12 @@ if ($pharFile == '') { $cfgFilePath = substr($pharFile, 7) . '.config.php'; } $GLOBALS['phorkie']['cfgfiles'][$cfgFilePath] = false; +$GLOBALS['phorkie']['suggestSetupCheck'] = false; if (file_exists($cfgFilePath)) { $GLOBALS['phorkie']['cfgfiles'][$cfgFilePath] = true; require_once $cfgFilePath; +} else if ($GLOBALS['phorkie']['cfg']['setupcheck']) { + $GLOBALS['phorkie']['suggestSetupCheck'] = true; } if ($GLOBALS['phorkie']['cfg']['baseurl'] === null) { @@ -101,6 +104,7 @@ function render($tplname, $vars = array()) if (!isset($vars['htmlhelper'])) { $vars['htmlhelper'] = new HtmlHelper(); } + $vars['suggestSetupCheck'] = $GLOBALS['phorkie']['suggestSetupCheck']; $template = $GLOBALS['twig']->loadTemplate($tplname . '.htm'); echo $template->render($vars);