Commit 135a4d88 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Add an option to show or hide the login side block (Bug #1434131)"

parents d8aa72e4 438d0132
......@@ -613,4 +613,10 @@ $cfg->probationstartingpoints = 2;
* be useful in some unusual hosting situations, for instance if you are running another web application
* that issues cookies with the same domain and path as Mahara.
*/
// $cfg->cookieprefix = '';
\ No newline at end of file
// $cfg->cookieprefix = '';
/**
* @global bool $cfg->showloginsideblock
* Whether to show the login sideblock
*/
$cfg->showloginsideblock = true;
......@@ -695,7 +695,9 @@ EOF;
);
}
if (!$USER->is_logged_in() && !(get_config('siteclosed') && get_config('disablelogin'))) {
$isloginblockvisible = !$USER->is_logged_in() && !(get_config('siteclosed') && get_config('disablelogin'))
&& get_config('showloginsideblock');
if ($isloginblockvisible) {
$sideblocks[] = array(
'name' => 'login',
'weight' => -10,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment