Issue #165 - allow to set configuration of children to their parents config, but on their own names.
Global options (navigation) are even carried through so that they use the central part. This falls back in place rather nicely, I hope it REALLY works. My first tests showed no issues.
This commit is contained in:
@ -96,11 +96,13 @@ if ( @file_exists($serendipity['serendipityPath'] . $serendipity['templatePath']
|
||||
|
||||
$data["cur_template"] = $serendipity['template'];
|
||||
$data["cur_template_backend"] = $serendipity['template_backend'];
|
||||
$data['cur_template_info'] = serendipity_fetchTemplateInfo($serendipity['template']);
|
||||
|
||||
if (file_exists($serendipity['serendipityPath'] . $serendipity['templatePath'] . $serendipity['template'] . '/config.inc.php')) {
|
||||
// NOTE: config.inc.php currently only applies to frontend configuration. Backend configuration is not planned yet, and would preferrably use a "config_backend.inc.php" file!
|
||||
if (file_exists($serendipity['serendipityPath'] . $serendipity['templatePath'] . $data['cur_template_info']['custom_config_engine'] . '/config.inc.php')) {
|
||||
serendipity_smarty_init();
|
||||
$old_template_config_groups = $template_config_groups;
|
||||
include_once $serendipity['serendipityPath'] . $serendipity['templatePath'] . $serendipity['template'] . '/config.inc.php';
|
||||
include_once $serendipity['serendipityPath'] . $serendipity['templatePath'] . $data['cur_template_info']['custom_config_engine'] . '/config.inc.php';
|
||||
// in case of theme switch, check to unset config_group array
|
||||
if ($serendipity['GET']['adminAction'] == 'install' && $serendipity['GET']['adminModule'] == 'templates') {
|
||||
// array diff - but do not do this for bulletproof, as this is the only one which needs them in case of reloads (temporary)
|
||||
|
Reference in New Issue
Block a user