X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=blobdiff_plain;f=index.php;h=2346d39b54e716404f683745806b22cc3b6dc9ef;hp=01b2b5ffb4c35ba6e31668df5cfef897d164b50f;hb=refs%2Fheads%2FMOODLE_310_STABLE;hpb=054900f5ed0c230a4e4488c995915e219966526d diff --git a/index.php b/index.php index 01b2b5ffb4c..2346d39b54e 100644 --- a/index.php +++ b/index.php @@ -91,18 +91,6 @@ if (get_home_page() != HOMEPAGE_SITE) { // Trigger event. course_view(context_course::instance(SITEID)); -// If the hub plugin is installed then we let it take over the homepage here. -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(); - // Function display_homepage() returns true if the hub home page is not displayed - // ...mostly when search form is not displayed for not logged users. - if (empty($continue)) { - exit; - } -} - $PAGE->set_pagetype('site-index'); $PAGE->set_docs_path(''); $editing = $PAGE->user_is_editing();