aboutsummaryrefslogtreecommitdiff
path: root/mod/diagnostics/views
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-23 23:26:03 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-23 23:26:03 +0000
commit1cf47c89b8ca9f5c42f5e247c3cba939f9676564 (patch)
tree118f50bd0f7d570a8868502f3623aff7986fbdfa /mod/diagnostics/views
parent417333356a9293ce0b927d5dd08a4820658bd915 (diff)
downloadelgg-1cf47c89b8ca9f5c42f5e247c3cba939f9676564.tar.gz
elgg-1cf47c89b8ca9f5c42f5e247c3cba939f9676564.tar.bz2
forgot diagnostics plugin from previous commit
git-svn-id: http://code.elgg.org/elgg/trunk@7921 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/diagnostics/views')
-rw-r--r--mod/diagnostics/views/default/admin/utilities/diagnostics.php27
1 files changed, 19 insertions, 8 deletions
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 @@
<?php
-$diagnostics = "<h3>".elgg_echo('diagnostics:report')."</h3>";
-$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 = "<h3>".elgg_echo('diagnostics:unittester')."</h3>";
+$unit_tests_title = elgg_echo('diagnostics:unittester');
$unit_tests .= "<p>" . elgg_echo('diagnostics:unittester:description') . "</p>";
$unit_tests .= "<p>" . elgg_echo('diagnostics:unittester:warning') . "</p>";
-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 <<<HTML
-$title
-<div class="admin_settings diagnostics">
- $diagnostics
- $unit_tests
+<div class="elgg-module elgg-inline-module">
+ <div class="elgg-head">
+ <h3>$diagnostics_title</h3>
+ </div>
+ <div class="elgg-body">
+ $diagnostics
+ </div>
+</div>
+<div class="elgg-module elgg-inline-module">
+ <div class="elgg-head">
+ <h3>$unit_tests_title</h3>
+ </div>
+ <div class="elgg-body">
+ $unit_tests
+ </div>
</div>
HTML;