From afca726e88935388808d0b4f88989003e3eb9d46 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 30 Oct 2010 01:34:33 +0000 Subject: fixed bug with setting initial version --- views/default/tidypics/admin/upgrade.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'views/default/tidypics/admin') diff --git a/views/default/tidypics/admin/upgrade.php b/views/default/tidypics/admin/upgrade.php index 3450bd7db..fd324b2d9 100644 --- a/views/default/tidypics/admin/upgrade.php +++ b/views/default/tidypics/admin/upgrade.php @@ -1,5 +1,6 @@ pluginspath}tidypics/version.php"; $upgrade_url = "{$vars['url']}action/tidypics/admin/upgrade"; @@ -11,7 +12,8 @@ if ($local_version === FALSE) { if (!get_subtype_class('object', 'image') || !get_subtype_class('object', 'album')) { $local_version = 0; } else { - set_plugin_setting('version', $local_version, 'tidypics'); + // set initial version for new install + set_plugin_setting('version', $version, 'tidypics'); $local_version = $version; } } elseif ($local_version == '1.62') { @@ -27,4 +29,4 @@ if ($local_version == $version) { echo elgg_view('output/url', array( 'text' => 'Upgrade', 'href' => $upgrade_url, 'is_action' => TRUE)); -echo '
'; \ No newline at end of file +echo '
'; -- cgit v1.2.3