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',
|
'type' => 'option',
|
||||||
'default' => 'Froxlor',
|
'default' => 'Froxlor',
|
||||||
'option_mode' => 'one',
|
'option_mode' => 'one',
|
||||||
'option_options' => array('Classic' => 'Classic', 'Froxlor' => 'Froxlor'),
|
'option_options_method' => 'getThemes',
|
||||||
/* 'option_options_method' => 'getThemes', // iterate through templates/ and dynamically display all folders found */
|
|
||||||
'save_method' => 'storeSettingField',
|
'save_method' => 'storeSettingField',
|
||||||
),
|
),
|
||||||
'panel_natsorting' => array(
|
'panel_natsorting' => array(
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ function getThemes()
|
|||||||
&& $it->getFilename() != '.svn'
|
&& $it->getFilename() != '.svn'
|
||||||
&& $it->getFilename() != 'misc'
|
&& $it->getFilename() != 'misc'
|
||||||
) {
|
) {
|
||||||
$themes_available[] = $it->getFilename();
|
$themes_available[$it->getFilename()] = $it->getFilename();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user