diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-07-26 01:56:31 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-07-26 01:56:31 +0000 |
commit | f2f32820f7f74b69faeece1b48d8628066b1b8ff (patch) | |
tree | 9be90b13c31b71f00a305acc76208190392e7d8e /modules/system/system.module | |
parent | 11a4aba9a63c82b0bb7805b50b8a761cc5a9c493 (diff) | |
download | brdo-f2f32820f7f74b69faeece1b48d8628066b1b8ff.tar.gz brdo-f2f32820f7f74b69faeece1b48d8628066b1b8ff.tar.bz2 |
- #26822: Fix logo upload being broken (drumm)
Diffstat (limited to 'modules/system/system.module')
-rw-r--r-- | modules/system/system.module | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/modules/system/system.module b/modules/system/system.module index 4b4ec2476..b2919e28e 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -599,8 +599,6 @@ function system_site_settings($module = NULL) { * Menu callback; display theme configuration for entire site and individual themes. */ function system_theme_settings($key = '') { - system_settings_save(); - // Default settings are defined in theme_get_settings() in includes/theme.inc if ($key) { $settings = theme_get_settings($key); @@ -620,11 +618,8 @@ function system_theme_settings($key = '') { $filename = ($key) ? str_replace('/', '_', $key) . '_logo.' . $parts['extension'] : 'logo.' . $parts['extension']; if ($file = file_save_upload('logo_upload', $filename, 1)) { - $settings['default_logo'] = 0; - $settings['logo_path'] = $file->filepath; - - // Update the variable table with the new settings so that they take effect immediately. - variable_set($var, $settings); + $_POST['edit'][$var]['default_logo'] = 0; + $_POST['edit'][$var]['logo_path'] = $file->filepath; } } else { @@ -638,14 +633,13 @@ function system_theme_settings($key = '') { $filename = ($key) ? str_replace('/', '_', $key) . '_favicon.' . $parts['extension'] : 'favicon.' . $parts['extension']; if ($file = file_save_upload('favicon_upload', $filename, 1)) { - $settings['default_favicon'] = 0; - $settings['favicon_path'] = $file->filepath; - - // Update the variable table with the new settings so that they take effect immediately. - variable_set($var, $settings); + $_POST['edit'][$var]['default_favicon'] = 0; + $_POST['edit'][$var]['favicon_path'] = $file->filepath; } } + system_settings_save(); + $form = ''; // Logo settings |