Fixing dynamic selection of themes in settings, fixes #628
Signed-off-by: Florian Aders (EleRas) <eleras@froxlor.org>
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -37,7 +37,7 @@ function getThemes()
|
||||
&& $it->getFilename() != '.svn'
|
||||
&& $it->getFilename() != 'misc'
|
||||
) {
|
||||
$themes_available[] = $it->getFilename();
|
||||
$themes_available[$it->getFilename()] = $it->getFilename();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user