diff options
-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; |