aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics/admin/upgrade.php
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2012-02-09 10:24:59 -0800
committerBrett Profitt <brett.profitt@gmail.com>2012-02-09 10:24:59 -0800
commit65f6184aec8f6c6e5d053d4cb0e0925b9f536570 (patch)
treed043143aec596595303bd83f32c97ce9681e8d6f /views/default/tidypics/admin/upgrade.php
parent4e593af0c167b0ec48799f569dced56058e5e8aa (diff)
downloadelgg-65f6184aec8f6c6e5d053d4cb0e0925b9f536570.tar.gz
elgg-65f6184aec8f6c6e5d053d4cb0e0925b9f536570.tar.bz2
Using tabs for admin pages.
Diffstat (limited to 'views/default/tidypics/admin/upgrade.php')
-rw-r--r--views/default/tidypics/admin/upgrade.php35
1 files changed, 0 insertions, 35 deletions
diff --git a/views/default/tidypics/admin/upgrade.php b/views/default/tidypics/admin/upgrade.php
deleted file mode 100644
index bb0a12467..000000000
--- a/views/default/tidypics/admin/upgrade.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-// sets $version based on code
-require_once "{$CONFIG->pluginspath}tidypics/version.php";
-
-$upgrade_url = "{$vars['url']}action/tidypics/admin/upgrade";
-
-// determine whether an upgrade is required
-$local_version = get_plugin_setting('version', 'tidypics');
-if ($local_version === FALSE) {
- // no version set so either new install or really old one
- if (!get_subtype_class('object', 'image') || !get_subtype_class('object', 'album')) {
- $local_version = 0;
- } else {
- // set initial version for new install
- set_plugin_setting('version', $version, 'tidypics');
- $local_version = $version;
- }
-} elseif ($local_version == '1.62') {
- // special work around to handle old upgrade system
- $local_version = 2010010101;
- set_plugin_setting('version', $local_version, 'tidypics');
-}
-if ($local_version == $version) {
- // no upgrade required
- return TRUE;
-}
-
-echo elgg_view('output/url', array(
- 'text' => elgg_echo('tidypics:upgrade'),
- 'href' => $upgrade_url,
- 'is_action' => TRUE)
-);
-
-echo '<br />';