diff options
Diffstat (limited to 'core/controllers/admin_themes.php')
-rw-r--r-- | core/controllers/admin_themes.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/controllers/admin_themes.php b/core/controllers/admin_themes.php index 278fb8f9..6d5d3d45 100644 --- a/core/controllers/admin_themes.php +++ b/core/controllers/admin_themes.php @@ -61,6 +61,13 @@ class Admin_Themes_Controller extends Admin_Controller { $form = theme::get_edit_form_admin($theme_info); $valid = $form->validate(); if ($valid) { + foreach (array("page_size", "thumb_size", "resize_size") as $param) { + $val = theme::get_var($theme_name, $param); + $input_val = $form->edit_theme->{$param}->value; + if ($val != $input_val) { + module::set_var($theme_name, $param, $input_val); + } + } print json_encode(array("result" => "success", "message" => t("Theme was successfully updated"))); } else { |