1
0

add custom config to info array - fixes 3a and half of 3b

This commit is contained in:
Ian
2014-05-20 20:13:22 +02:00
parent e8a2900beb
commit b4f015e4c0
2 changed files with 13 additions and 5 deletions
include
templates/2k11/admin

@ -258,6 +258,10 @@ function serendipity_fetchTemplateInfo($theme, $abspath = null) {
$data[$k] = implode("\n", $v);
}
if (@is_file($serendipity['templatePath'] . $theme . '/config.inc.php')) {
$data['custom_config'] = YES;
}
if ( $theme != 'default' && $theme != 'default-rtl'
&& @is_dir($serendipity['templatePath'] . $theme . '/admin')
&& strtolower($data['backend']) == 'yes' ) {