aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-06-05 11:26:42 +0000
committerCash Costello <cash.costello@gmail.com>2009-06-05 11:26:42 +0000
commit8e8e50d510608d94e266e3c951349a45046dfc67 (patch)
tree5e66e93e3ca120a3d473cc38226e37072d78d0fd /actions
parentee733ee32b08e062ab868a3b26c3cbe73852a28e (diff)
downloadelgg-8e8e50d510608d94e266e3c951349a45046dfc67.tar.gz
elgg-8e8e50d510608d94e266e3c951349a45046dfc67.tar.bz2
added image sizes to settings and removed deprecated settings object
Diffstat (limited to 'actions')
-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'));