1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-23 17:34:56 +02:00

MDL-33016 eliminate unnecessary DB query on /index.php

This commit is contained in:
Petr Skoda 2012-05-15 15:40:22 +02:00
parent 71d7bc34a8
commit 13f18ae197

@ -74,7 +74,7 @@
}
/// If the hub plugin is installed then we let it take over the homepage here
if (get_config('local_hub', 'hubenabled') && file_exists($CFG->dirroot.'/local/hub/lib.php')) {
if (file_exists($CFG->dirroot.'/local/hub/lib.php') and get_config('local_hub', 'hubenabled')) {
require_once($CFG->dirroot.'/local/hub/lib.php');
$hub = new local_hub();
$continue = $hub->display_homepage();