aboutsummaryrefslogtreecommitdiff
path: root/actions/photos/admin
diff options
context:
space:
mode:
Diffstat (limited to 'actions/photos/admin')
-rw-r--r--actions/photos/admin/settings.php8
-rw-r--r--actions/photos/admin/upgrade.php4
2 files changed, 5 insertions, 7 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'));
diff --git a/actions/photos/admin/upgrade.php b/actions/photos/admin/upgrade.php
index c9ae1da48..8e03c6bc5 100644
--- a/actions/photos/admin/upgrade.php
+++ b/actions/photos/admin/upgrade.php
@@ -5,7 +5,7 @@
$plugins_path = elgg_get_plugins_path();
-require_once "{$plugins_path}tidypics/version.php";
+require_once "{$plugins_path}lightpics/version.php";
$local_version = elgg_get_plugin_setting('version', 'tidypics');
@@ -16,7 +16,7 @@ if ($version <= $local_version) {
set_time_limit(0);
-$base_dir = "{$plugins_path}tidypics/upgrades";
+$base_dir = "{$plugins_path}lightpics/upgrades";
// taken from engine/lib/version.php
if ($handle = opendir($base_dir)) {