1
0

only include config if exists, fixes installer

This commit is contained in:
onli
2013-05-30 20:55:20 +02:00
parent 6503b98e28
commit 615a1300ec

View File

@@ -1020,7 +1020,9 @@ function serendipity_smarty_init($vars = array()) {
// For advanced usage, we allow template authors to create a file 'config.inc.php' where they can
// setup custom smarty variables, modifiers etc. to use in their templates.
include_once $serendipity['smarty']->getConfigDir(0) . '/config.inc.php';
if (file_exists($serendipity['smarty']->getConfigDir(0) . '/config.inc.php')) {
include_once $serendipity['smarty']->getConfigDir(0) . '/config.inc.php';
}
if (is_array($template_loaded_config)) {
$template_vars =& $template_loaded_config;