diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 2f2d1ad69b13..80af3666f2b7 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -10390,6 +10390,11 @@ function get_performance_info() { $info['html'] .= 'Included '.$info['includecount'].' files '; $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();