From 5ee03eb9c80188a6f4397eba14e1ce5e23c49cac Mon Sep 17 00:00:00 2001 From: Felix Rabinovich Date: Sat, 10 Jan 2009 22:36:06 +0000 Subject: Save individual theme values --- core/controllers/admin_themes.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'core/controllers') 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 { -- cgit v1.2.3