MDL-35893 do not track performance before installation
This commit is contained in:
@@ -10386,6 +10386,11 @@ function get_performance_info() {
|
||||
$info['html'] .= '<span class="included">Included '.$info['includecount'].' files</span> ';
|
||||
$info['txt'] .= 'includecount: '.$info['includecount'].' ';
|
||||
|
||||
if (!empty($CFG->early_install_lang)) {
|
||||
// We can not track more performance before installation, sorry.
|
||||
return $info;
|
||||
}
|
||||
|
||||
$filtermanager = filter_manager::instance();
|
||||
if (method_exists($filtermanager, 'get_performance_summary')) {
|
||||
list($filterinfo, $nicenames) = $filtermanager->get_performance_summary();
|
||||
|
||||
Reference in New Issue
Block a user