Skip to content

Commit

Permalink
MDL-39416 do not try to get detailed perflog info before PAGE int
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jun 2, 2013
1 parent b6f8a93 commit 102e0c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/moodlelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -10609,8 +10609,8 @@ 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.
if (!empty($CFG->early_install_lang) or empty($PAGE)) {
// We can not track more performance before installation or before PAGE init, sorry.
return $info;
}

Expand Down

0 comments on commit 102e0c7

Please sign in to comment.