aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actions/photos/admin/upgrade.php2
-rw-r--r--lib/tidypics.php1
2 files changed, 3 insertions, 0 deletions
diff --git a/actions/photos/admin/upgrade.php b/actions/photos/admin/upgrade.php
index 8e03c6bc5..db09ed035 100644
--- a/actions/photos/admin/upgrade.php
+++ b/actions/photos/admin/upgrade.php
@@ -9,6 +9,7 @@ require_once "{$plugins_path}lightpics/version.php";
$local_version = elgg_get_plugin_setting('version', 'tidypics');
+$local_version = 2009082901;
if ($version <= $local_version) {
register_error('No upgrade required');
forward(REFERER);
@@ -18,6 +19,7 @@ set_time_limit(0);
$base_dir = "{$plugins_path}lightpics/upgrades";
+
// taken from engine/lib/version.php
if ($handle = opendir($base_dir)) {
$upgrades = array();
diff --git a/lib/tidypics.php b/lib/tidypics.php
index 62c4c1c89..cbf9c0c28 100644
--- a/lib/tidypics.php
+++ b/lib/tidypics.php
@@ -128,6 +128,7 @@ function tidypics_get_image_libraries() {
function tidypics_is_upgrade_available() {
// sets $version based on code
require_once elgg_get_plugins_path() . "lightpics/version.php";
+ return true;
$local_version = elgg_get_plugin_setting('version', 'tidypics');
if ($local_version === false) {