Skip to content
Snippets Groups Projects
Commit 75a7a641 authored by Steven Wittens's avatar Steven Wittens
Browse files

- #26822: Fix logo upload being broken (drumm)

parent 682d023e
No related branches found
No related tags found
No related merge requests found
......@@ -609,8 +609,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);
......@@ -630,11 +628,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 {
......@@ -642,6 +637,7 @@ function system_theme_settings($key = '') {
}
}
system_settings_save();
$form = '';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment