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 ae61eea commit d1bb51a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/moodlelib.php
Expand Up @@ -10432,8 +10432,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 d1bb51a

Please sign in to comment.