diff options
author | Sem <sembrestels@riseup.net> | 2012-07-29 04:47:58 +0200 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-07-29 04:47:58 +0200 |
commit | e4c742e5ce21ae857ad28e0ec24fbe6e267adfaa (patch) | |
tree | e696ee4ec72fac41f6056ddba6a7159f909d8342 /activate.php | |
parent | 55bb2b7ed2583683548e314ae13fadde61eb04d6 (diff) | |
download | elgg-e4c742e5ce21ae857ad28e0ec24fbe6e267adfaa.tar.gz elgg-e4c742e5ce21ae857ad28e0ec24fbe6e267adfaa.tar.bz2 |
Changed plugin name to Lightpics.
Diffstat (limited to 'activate.php')
-rw-r--r-- | activate.php | 5 |
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'); } } |