summaryrefslogtreecommitdiff
path: root/core/controllers/admin_themes.php
diff options
context:
space:
mode:
authorFelix Rabinovich <virshu@users.sourceforge.net>2009-01-10 22:36:06 +0000
committerFelix Rabinovich <virshu@users.sourceforge.net>2009-01-10 22:36:06 +0000
commit5ee03eb9c80188a6f4397eba14e1ce5e23c49cac (patch)
treedf9dc16e15b461ad31230143a9651ebca172068d /core/controllers/admin_themes.php
parent705c55fb798c97dfb398cad23670fce2f5e16fb4 (diff)
Save individual theme values
Diffstat (limited to 'core/controllers/admin_themes.php')
-rw-r--r--core/controllers/admin_themes.php7
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 {