diff options
author | Pablo Martin <caedes@sindominio.net> | 2012-11-05 08:16:30 +0000 |
---|---|---|
committer | root <root@ops.vz.lan> | 2012-11-05 08:16:40 +0000 |
commit | c11fa1708b9d133c7efe9ca889ff0d9b8017119c (patch) | |
tree | e005cb3e0f234556c6341ecf6a246e5efd2d2d1a | |
parent | 931b5803ec26a8169870124b0027a5ccf9e3200e (diff) | |
download | elgg-c11fa1708b9d133c7efe9ca889ff0d9b8017119c.tar.gz elgg-c11fa1708b9d133c7efe9ca889ff0d9b8017119c.tar.bz2 |
force allowing an upgrade.
-rw-r--r-- | actions/photos/admin/upgrade.php | 2 | ||||
-rw-r--r-- | lib/tidypics.php | 1 |
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) { |