aboutsummaryrefslogtreecommitdiff
path: root/activate.php
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-07-29 04:47:58 +0200
committerSem <sembrestels@riseup.net>2012-07-29 04:47:58 +0200
commite4c742e5ce21ae857ad28e0ec24fbe6e267adfaa (patch)
treee696ee4ec72fac41f6056ddba6a7159f909d8342 /activate.php
parent55bb2b7ed2583683548e314ae13fadde61eb04d6 (diff)
downloadelgg-e4c742e5ce21ae857ad28e0ec24fbe6e267adfaa.tar.gz
elgg-e4c742e5ce21ae857ad28e0ec24fbe6e267adfaa.tar.bz2
Changed plugin name to Lightpics.
Diffstat (limited to 'activate.php')
-rw-r--r--activate.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/activate.php b/activate.php
index 6b8390406..b0f4a0c7f 100644
--- a/activate.php
+++ b/activate.php
@@ -19,7 +19,6 @@ if (get_subtype_id('object', 'image')) {
}
// set default settings
-$plugin = elgg_get_plugin_from_id('tidypics');
$image_sizes = array();
$image_sizes['large_image_width'] = $image_sizes['large_image_height'] = 600;
@@ -46,7 +45,7 @@ $defaults = array(
);
foreach ($defaults as $name => $value) {
- if ($plugin->getSetting($name) === null) {
- $plugin->setSetting($name, $value);
+ if (elgg_get_plugin_setting($name, 'tidypics') === null) {
+ elgg_set_plugin_setting($name, $value, 'tidypics');
}
}