Skip to content
Browse files

MDL-35893 do not track performance before installation

  • Loading branch information...
1 parent 322af44 commit ef227f1e0f0e55dd32e98b68b1eae31a6fd2ff0e @skodak skodak committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/moodlelib.php
View
5 lib/moodlelib.php
@@ -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();

0 comments on commit ef227f1

Please sign in to comment.
Something went wrong with that request. Please try again.