NOBUG: Added a couple of descriptive classes to reused perfinfo class
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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&sesskey='.sesskey().'">'.get_string('purgecaches', 'admin').'</a></div>';
|
||||
|
||||
Reference in New Issue
Block a user