Skip to content

Commit

Permalink
hub server MDL-24015 add hub setting to not display the search form o…
Browse files Browse the repository at this point in the history
…n the front page when users are not logged
  • Loading branch information
mouneyrac committed Oct 8, 2010
1 parent 252708c commit a4e56bf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,12 @@
if (get_config('local_hub', 'hubenabled') && file_exists($CFG->dirroot.'/local/hub/lib.php')) {
require_once($CFG->dirroot.'/local/hub/lib.php');
$hub = new local_hub();
$hub->display_homepage();
exit;
$continue = $hub->display_homepage();
//display_homepage() return 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');
Expand Down

0 comments on commit a4e56bf

Please sign in to comment.