diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-06-05 11:26:42 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-06-05 11:26:42 +0000 |
commit | 8e8e50d510608d94e266e3c951349a45046dfc67 (patch) | |
tree | 5e66e93e3ca120a3d473cc38226e37072d78d0fd /actions/settings.php | |
parent | ee733ee32b08e062ab868a3b26c3cbe73852a28e (diff) | |
download | elgg-8e8e50d510608d94e266e3c951349a45046dfc67.tar.gz elgg-8e8e50d510608d94e266e3c951349a45046dfc67.tar.bz2 |
added image sizes to settings and removed deprecated settings object
Diffstat (limited to 'actions/settings.php')
-rw-r--r-- | actions/settings.php | 13 |
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'));
|