aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics
diff options
context:
space:
mode:
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