aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-06-21 22:42:39 +0000
committerCash Costello <cash.costello@gmail.com>2009-06-21 22:42:39 +0000
commit6ce057f5162e18cd5190717145a13e7c29fe9da7 (patch)
tree0ce23ee020d366bd27892b0055fe7dc333520dc7 /views/default/tidypics
parent8a76d53f35eabe1b33f012e91fd745c1e0653203 (diff)
downloadelgg-6ce057f5162e18cd5190717145a13e7c29fe9da7.tar.gz
elgg-6ce057f5162e18cd5190717145a13e7c29fe9da7.tar.bz2
added in skeleton for image and album classes
Diffstat (limited to 'views/default/tidypics')
-rw-r--r--views/default/tidypics/settings.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/views/default/tidypics/settings.php b/views/default/tidypics/settings.php
index e69d6d306..c8d12d861 100644
--- a/views/default/tidypics/settings.php
+++ b/views/default/tidypics/settings.php
@@ -4,8 +4,20 @@
global $CONFIG;
$system_url = $CONFIG->wwwroot . 'mod/tidypics/system.php';
+ $upgrade_url = $CONFIG->wwwroot . 'mod/tidypics/upgrade.php';
+
+ $upgrade = false;
+ if (!get_subtype_class('object', 'image') || !get_subtype_class('object', 'album'))
+ $upgrade = true;
?>
<p>
+<?php
+ if ($upgrade) {
+?>
+<a href="<?php echo $upgrade_url; ?>">Upgrade</a><br />
+<?php
+ }
+?>
<a href="<?php echo $system_url; ?>">Run Server Analysis</a>
</p>
<?php