diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-23 23:26:03 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-23 23:26:03 +0000 |
commit | 1cf47c89b8ca9f5c42f5e247c3cba939f9676564 (patch) | |
tree | 118f50bd0f7d570a8868502f3623aff7986fbdfa /mod/diagnostics | |
parent | 417333356a9293ce0b927d5dd08a4820658bd915 (diff) | |
download | elgg-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')
-rw-r--r-- | mod/diagnostics/languages/en.php | 2 | ||||
-rw-r--r-- | mod/diagnostics/views/default/admin/utilities/diagnostics.php | 27 |
2 files changed, 20 insertions, 9 deletions
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 @@ <?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; |