Fixing dynamic selection of themes in settings, fixes #628

Signed-off-by: Florian Aders (EleRas) <eleras@froxlor.org>
This commit is contained in:
Florian Aders (EleRas)
2011-03-01 20:38:09 +01:00
parent 207e9e1b43
commit 00edba1d0d
2 changed files with 2 additions and 3 deletions

View File

@@ -39,8 +39,7 @@ return array(
'type' => 'option',
'default' => 'Froxlor',
'option_mode' => 'one',
'option_options' => array('Classic' => 'Classic', 'Froxlor' => 'Froxlor'),
/* 'option_options_method' => 'getThemes', // iterate through templates/ and dynamically display all folders found */
'option_options_method' => 'getThemes',
'save_method' => 'storeSettingField',
),
'panel_natsorting' => array(

View File

@@ -37,7 +37,7 @@ function getThemes()
&& $it->getFilename() != '.svn'
&& $it->getFilename() != 'misc'
) {
$themes_available[] = $it->getFilename();
$themes_available[$it->getFilename()] = $it->getFilename();
}
}
}