From 1cf47c89b8ca9f5c42f5e247c3cba939f9676564 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 23 Jan 2011 23:26:03 +0000 Subject: forgot diagnostics plugin from previous commit git-svn-id: http://code.elgg.org/elgg/trunk@7921 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/diagnostics/languages/en.php | 2 +- .../views/default/admin/utilities/diagnostics.php | 27 +++++++++++++++------- 2 files changed, 20 insertions(+), 9 deletions(-) (limited to 'mod/diagnostics') diff --git a/mod/diagnostics/languages/en.php b/mod/diagnostics/languages/en.php index a02a3f66c..0b90957f9 100644 --- a/mod/diagnostics/languages/en.php +++ b/mod/diagnostics/languages/en.php @@ -32,7 +32,7 @@ 'diagnostics:unittester:report' => 'Test report for %s', - 'diagnostics:download' => 'Download .txt', + 'diagnostics:download' => 'Download', 'diagnostics:header' => '======================================================================== diff --git a/mod/diagnostics/views/default/admin/utilities/diagnostics.php b/mod/diagnostics/views/default/admin/utilities/diagnostics.php index 4c4fcc2fd..a1e7ca336 100644 --- a/mod/diagnostics/views/default/admin/utilities/diagnostics.php +++ b/mod/diagnostics/views/default/admin/utilities/diagnostics.php @@ -1,16 +1,16 @@ ".elgg_echo('diagnostics:report').""; -$diagnostics .= elgg_echo('diagnostics:description'); +$diagnostics_title = elgg_echo('diagnostics:report'); +$diagnostics = elgg_echo('diagnostics:description'); $diagnostics .= elgg_view('diagnostics/forms/download'); // unit tests -$unit_tests = "

".elgg_echo('diagnostics:unittester')."

"; +$unit_tests_title = elgg_echo('diagnostics:unittester'); $unit_tests .= "

" . elgg_echo('diagnostics:unittester:description') . "

"; $unit_tests .= "

" . elgg_echo('diagnostics:unittester:warning') . "

"; -if (isset($CONFIG->debug)) { +if (elgg_get_config('debug')) { // create a button to run tests $params = array( 'text' => elgg_echo('diagnostics:test:executeall'), @@ -25,9 +25,20 @@ if (isset($CONFIG->debug)) { // display admin body echo << - $diagnostics - $unit_tests +
+
+

$diagnostics_title

+
+
+ $diagnostics +
+
+
+
+

$unit_tests_title

+
+
+ $unit_tests +
HTML; -- cgit v1.2.3