NOBUG: Added a couple of descriptive classes to reused perfinfo class

This commit is contained in:
Sam Hemelryk
2010-08-20 07:37:59 +00:00
parent 710363c97a
commit d4c3f025b1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -9079,7 +9079,7 @@ function get_performance_info() {
$info['txt'] .= 'rcache: '.
"{$rcache->hits}/{$rcache->misses} ";
}*/
$info['html'] = '<div class="performanceinfo">'.$info['html'].'</div>';
$info['html'] = '<div class="performanceinfo siteinfo">'.$info['html'].'</div>';
return $info;
}
+1 -1
View File
@@ -355,7 +355,7 @@ class core_renderer extends renderer_base {
$output .= html_writer::tag('div', get_string('legacythemeinuse'), array('class'=>'legacythemeinuse'));
}
if (!empty($CFG->debugpageinfo)) {
$output .= '<div class="performanceinfo">This page is: ' . $this->page->debug_summary() . '</div>';
$output .= '<div class="performanceinfo pageinfo">This page is: ' . $this->page->debug_summary() . '</div>';
}
if (debugging(null, DEBUG_DEVELOPER) and has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM))) { // Only in developer mode
$output .= '<div class="purgecaches"><a href="'.$CFG->wwwroot.'/admin/purgecaches.php?confirm=1&amp;sesskey='.sesskey().'">'.get_string('purgecaches', 'admin').'</a></div>';