aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics/admin/settings.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2010-07-31 17:17:43 +0000
committerCash Costello <cash.costello@gmail.com>2010-07-31 17:17:43 +0000
commit28e545574f35f0d6349a395648a7857ee58989c9 (patch)
treefa0faa6f7d1ea04dd4c29708acc0c65581214d5f /views/default/tidypics/admin/settings.php
parentd77e8fd4cb76560ae2f1c180cc9ccbcde7e3942a (diff)
downloadelgg-28e545574f35f0d6349a395648a7857ee58989c9.tar.gz
elgg-28e545574f35f0d6349a395648a7857ee58989c9.tar.bz2
cleaning up the admin pages
Diffstat (limited to 'views/default/tidypics/admin/settings.php')
-rw-r--r--views/default/tidypics/admin/settings.php27
1 files changed, 10 insertions, 17 deletions
diff --git a/views/default/tidypics/admin/settings.php b/views/default/tidypics/admin/settings.php
index bc0befa16..60c34b64e 100644
--- a/views/default/tidypics/admin/settings.php
+++ b/views/default/tidypics/admin/settings.php
@@ -2,25 +2,18 @@
echo elgg_view('output/longtext', array('value' => elgg_echo("tidypics:admin:instructions")));
-global $CONFIG;
-$system_url = $CONFIG->wwwroot . 'mod/tidypics/pages/server_analysis.php';
-$upgrade_url = $CONFIG->wwwroot . 'mod/tidypics/actions/upgrade.php';
-$upgrade_url = elgg_add_action_tokens_to_url($upgrade_url);
-
-$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>
+<?php
+echo elgg_view('tidypics/admin/upgrade');
+
+global $CONFIG;
+$url = $CONFIG->wwwroot . 'mod/tidypics/pages/server_analysis.php';
+$text = elgg_echo('tidypics:settings:server:analysis');
+
+echo "<a href=\"$url\">$text</a>";
+?>
</p>
<?php
+
echo elgg_view("tidypics/forms/settings");