diff options
author | Sem <sembrestels@riseup.net> | 2012-08-03 04:11:13 +0200 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-08-03 04:11:13 +0200 |
commit | 881c9a1e06c084738effd4e27b4d69029eda883f (patch) | |
tree | 170ea5968642342a300386f6b2ff6ecc4abc59f6 /actions/photos/admin/settings.php | |
parent | dad0209bbd7994b623bc0126e3e37b1f521d2977 (diff) | |
download | elgg-881c9a1e06c084738effd4e27b4d69029eda883f.tar.gz elgg-881c9a1e06c084738effd4e27b4d69029eda883f.tar.bz2 |
Settings are saving in lightpics plugin now.
Diffstat (limited to 'actions/photos/admin/settings.php')
-rw-r--r-- | actions/photos/admin/settings.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/actions/photos/admin/settings.php b/actions/photos/admin/settings.php index 1a4a4bdda..aa607756d 100644 --- a/actions/photos/admin/settings.php +++ b/actions/photos/admin/settings.php @@ -6,12 +6,10 @@ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2 */ -$plugin = elgg_get_plugin_from_id('tidypics'); - $params = get_input('params'); foreach ($params as $k => $v) { - if (!$plugin->setSetting($k, $v)) { - register_error(elgg_echo('plugins:settings:save:fail', array('tidypics'))); + if (!elgg_set_plugin_setting($k, $v, 'lightpics')) { + register_error(elgg_echo('plugins:settings:save:fail', array('lightpics'))); forward(REFERER); } } @@ -24,7 +22,7 @@ $image_sizes['small_image_width'] = get_input('small_image_width'); $image_sizes['small_image_height'] = get_input('small_image_height'); $image_sizes['tiny_image_width'] = get_input('tiny_image_width'); $image_sizes['tiny_image_height'] = get_input('tiny_image_height'); -$plugin->setSetting('image_sizes', serialize($image_sizes)); +elgg_set_plugin_setting('image_sizes', serialize($image_sizes), 'lightpics'); system_message(elgg_echo('tidypics:settings:save:ok')); |