aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics/forms
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-08-22 15:47:23 +0000
committerCash Costello <cash.costello@gmail.com>2009-08-22 15:47:23 +0000
commit8bb8857e8d932b0215998b85c09bdb941b78e397 (patch)
tree7f50394b4e8dc97e2b69a329f3b152fdafbc6ad5 /views/default/tidypics/forms
parentbbc7b1bb87ca4ed58b801c12ca4a6ee405f0558c (diff)
downloadelgg-8bb8857e8d932b0215998b85c09bdb941b78e397.tar.gz
elgg-8bb8857e8d932b0215998b85c09bdb941b78e397.tar.bz2
start adding plugin version to private plugin settings to make upgrade detection easier in the future
Diffstat (limited to 'views/default/tidypics/forms')
-rw-r--r--views/default/tidypics/forms/admin.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/views/default/tidypics/forms/admin.php b/views/default/tidypics/forms/admin.php
index c3b366521..1685f7791 100644
--- a/views/default/tidypics/forms/admin.php
+++ b/views/default/tidypics/forms/admin.php
@@ -3,10 +3,6 @@
* Tidypics admin settings form
*/
- // to do
- // 1. set action and code it
- // 2. add language strings
- // 3. clean up and organize
$action = $vars['url'] . 'action/tidypics/settings';
@@ -14,6 +10,11 @@
$plugin = find_plugin_settings('tidypics');
+ // bootstrap the plugin version here for now
+ if (!$plugin->version) {
+ set_plugin_setting('version', 1.62, 'tidypics');
+ }
+
if (extension_loaded('imagick'))
$img_lib_options['ImageMagickPHP'] = 'IMagick PHP';