MDL-35893 do not track performance before installation

This commit is contained in:
Petr Škoda
2013-01-01 15:51:06 +01:00
parent 322af447f5
commit ef227f1e0f
+5
View File
@@ -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();