aboutsummaryrefslogtreecommitdiff
path: root/actions/settings.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/settings.php')
-rw-r--r--actions/settings.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/actions/settings.php b/actions/settings.php
index c0f53c71d..29a77577f 100644
--- a/actions/settings.php
+++ b/actions/settings.php
@@ -30,6 +30,19 @@
set_plugin_setting('tagging', 'enabled', 'tidypics');
else
set_plugin_setting('tagging', 'disabled', 'tidypics');
+
+
+ // image sizes
+ $image_sizes = array();
+ $image_sizes['large_image_width'] = get_input('large_thumb_width');
+ $image_sizes['large_image_height'] = get_input('large_thumb_height');
+ $image_sizes['small_image_width'] = get_input('small_thumb_width');
+ $image_sizes['small_image_height'] = get_input('small_thumb_height');
+ $image_sizes['thumb_image_width'] = get_input('thumb_width');
+ $image_sizes['thumb_image_height'] = get_input('thumb_height');
+ set_plugin_setting('image_sizes', serialize($image_sizes), 'tidypics');
+
+
system_message(elgg_echo('tidypics:settings:save:ok'));