diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-11-29 20:59:54 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-11-29 20:59:54 +0000 |
| commit | 95b9a71a420e441c1aae0cba9e374e6290116f7c (patch) | |
| tree | b3694a6cb7360173a91ad6bdc0c71d9ad4299069 /siteconfig.php | |
| parent | 8e129a8df87a000ee8409be245cc50e6ebb264b3 (diff) | |
| download | webtrees-95b9a71a420e441c1aae0cba9e374e6290116f7c.tar.gz webtrees-95b9a71a420e441c1aae0cba9e374e6290116f7c.tar.bz2 webtrees-95b9a71a420e441c1aae0cba9e374e6290116f7c.zip | |
#596516 - Site theme not saved
Diffstat (limited to 'siteconfig.php')
| -rw-r--r-- | siteconfig.php | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/siteconfig.php b/siteconfig.php index 4bd586ca15..642f2216aa 100644 --- a/siteconfig.php +++ b/siteconfig.php @@ -45,6 +45,7 @@ case 'update': set_site_setting('USE_REGISTRATION_MODULE', safe_POST('use_registration_module')); set_site_setting('REQUIRE_ADMIN_AUTH_REGISTRATION', safe_POST('require_admin_auth_registration')); set_site_setting('ALLOW_USER_THEMES', safe_POST('allow_user_themes')); + set_site_setting('THEME_DIR', safe_POST('theme_dir', get_theme_names())); set_site_setting('ALLOW_CHANGE_GEDCOM', safe_POST('allow_change_gedcom')); set_site_setting('SESSION_TIME', safe_POST('session_time')); set_site_setting('SERVER_URL', safe_POST('server_url')); @@ -101,17 +102,7 @@ echo '<td class="optionbox wrap">', edit_field_yes_no('allow_user_themes', get_site_setting('ALLOW_USER_THEMES')), '</td>', '</tr><tr>', '<td class="descriptionbox width20 wrap">', i18n::translate('Default Theme'), help_link('THEME'), '</td>', - '<td class="optionbox wrap"><select name="THEME_DIR">'; -$current_themedir=get_site_setting('THEME_DIR', 'themes/webtrees/'); -foreach (get_theme_names() as $themename=>$themedir) { - echo '<option value="', $themedir, '"'; - if ($themedir==$current_themedir) { - echo ' selected="selected"'; - } - echo '>', $themename, '</option>'; -} -echo - '</select></tr><tr>', + '<td class="optionbox wrap">', select_edit_control('theme_dir', array_flip(get_theme_names()), null, get_site_setting('THEME_DIR', 'themes/webtrees/')), '</tr><tr>', '<td class="descriptionbox width20 wrap">', i18n::translate('Allow GEDCOM switching'), help_link('ALLOW_CHANGE_GEDCOM'), '</td>', '<td class="optionbox wrap">', edit_field_yes_no('allow_change_gedcom', get_site_setting('ALLOW_CHANGE_GEDCOM')), '</td>', '</tr><tr>', |
