aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2010-10-30 01:34:33 +0000
committerCash Costello <cash.costello@gmail.com>2010-10-30 01:34:33 +0000
commitafca726e88935388808d0b4f88989003e3eb9d46 (patch)
treee835feb98c7c5f7fa9cefa2fb36f86ae71089de5 /views
parent1c8dccf838eb15a9b69924f1f29a4786c6eadbb9 (diff)
downloadelgg-afca726e88935388808d0b4f88989003e3eb9d46.tar.gz
elgg-afca726e88935388808d0b4f88989003e3eb9d46.tar.bz2
fixed bug with setting initial version
Diffstat (limited to 'views')
-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 />';