From 8bb8857e8d932b0215998b85c09bdb941b78e397 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 22 Aug 2009 15:47:23 +0000 Subject: start adding plugin version to private plugin settings to make upgrade detection easier in the future --- views/default/tidypics/forms/admin.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'views/default') 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'; -- cgit v1.2.3