only include config if exists, fixes installer
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user