Skip to content

Commit

Permalink
MDL-33016 eliminate unnecessary DB query on /index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed May 15, 2012
1 parent 71d7bc3 commit 13f18ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 13f18ae

Please sign in to comment.