aboutsummaryrefslogtreecommitdiff
path: root/mod/diagnostics/views
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-10-24 22:13:24 -0400
committercash <cash.costello@gmail.com>2011-10-24 22:13:24 -0400
commit9aa8c9c6a4d5b54326222db937a48726d7a95412 (patch)
treed8598fa9162fbb584db446bdb4d5b424ed4e77de /mod/diagnostics/views
parent3703a53134d6b167602cd40f31eb58bfefda9d0b (diff)
downloadelgg-9aa8c9c6a4d5b54326222db937a48726d7a95412.tar.gz
elgg-9aa8c9c6a4d5b54326222db937a48726d7a95412.tar.bz2
Fixes #3868 removed unnecessary form for downloading the diagnostics report
Diffstat (limited to 'mod/diagnostics/views')
-rw-r--r--mod/diagnostics/views/default/admin/develop_utilities/diagnostics.php11
-rw-r--r--mod/diagnostics/views/default/forms/diagnostics/download.php5
2 files changed, 9 insertions, 7 deletions
diff --git a/mod/diagnostics/views/default/admin/develop_utilities/diagnostics.php b/mod/diagnostics/views/default/admin/develop_utilities/diagnostics.php
index b41907da2..02151174c 100644
--- a/mod/diagnostics/views/default/admin/develop_utilities/diagnostics.php
+++ b/mod/diagnostics/views/default/admin/develop_utilities/diagnostics.php
@@ -4,8 +4,15 @@
*/
$diagnostics_title = elgg_echo('diagnostics:report');
-$diagnostics = elgg_echo('diagnostics:description');
-$diagnostics .= elgg_view_form('diagnostics/download');
+$diagnostics = '<p>' . elgg_echo('diagnostics:description') .'</p>';
+$params = array(
+ 'text' => elgg_echo('diagnostics:download'),
+ 'href' => 'action/diagnostics/download',
+ 'class' => 'elgg-button elgg-button-submit',
+ 'is_action' => true,
+ 'is_trusted' => true,
+);
+$diagnostics .= '<p>' . elgg_view('output/url', $params) . '</p>';
// unit tests
$unit_tests_title = elgg_echo('diagnostics:unittester');
diff --git a/mod/diagnostics/views/default/forms/diagnostics/download.php b/mod/diagnostics/views/default/forms/diagnostics/download.php
deleted file mode 100644
index b0abe8434..000000000
--- a/mod/diagnostics/views/default/forms/diagnostics/download.php
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-/**
- * Diagnostics download form
- */
-echo elgg_view('input/submit', array('value' => elgg_echo('diagnostics:download'))); \ No newline at end of file