1
0

patch by ian

This commit is contained in:
Garvin Hicking
2011-07-21 12:18:39 +00:00
parent 3030b3a491
commit 2916a08510

View File

@ -2116,15 +2116,18 @@ function serendipity_loadGlobalThemeOptions(&$template_config, &$template_loaded
if ($supported['navigation']) { if ($supported['navigation']) {
$navlinks = array(); $navlinks = array();
$conf_amount = array( if (!isset($template_loaded_config['amount'])) {
$conf_amount = array(
'var' => 'amount', 'var' => 'amount',
'name' => NAVLINK_AMOUNT, 'name' => NAVLINK_AMOUNT,
'desc' => NAVLINK_AMOUNT_BLAHBLAH,
'type' => 'string', 'type' => 'string',
'default' => '5', 'default' => '5',
'scope' => 'global' 'scope' => 'global'
); );
$template_config[] = $conf_amount; $template_config[] = $conf_amount;
}
if (empty($template_loaded_config['amount'])) { if (empty($template_loaded_config['amount'])) {
$template_loaded_config['amount'] = $conf_amount['default']; $template_loaded_config['amount'] = $conf_amount['default'];
} }