MDL-39416 do not try to get detailed perflog info before PAGE int

This commit is contained in:
Petr Škoda
2013-06-02 13:33:20 +02:00
parent ee2e56ee9e
commit a3ccd8e86e
+5
View File
@@ -10343,6 +10343,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) or empty($PAGE)) {
// We can not track more performance before installation or before PAGE init, sorry.
return $info;
}
$filtermanager = filter_manager::instance();
if (method_exists($filtermanager, 'get_performance_summary')) {
list($filterinfo, $nicenames) = $filtermanager->get_performance_summary();