aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics/admin
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/tidypics/admin')
-rw-r--r--views/default/tidypics/admin/upgrade.php6
1 files changed, 4 insertions, 2 deletions
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 @@
<?php
+// sets $version based on code
require_once "{$CONFIG->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 '<br />'; \ No newline at end of file
+echo '<br />';