Commit 076d6f63 authored by Robert Lyon's avatar Robert Lyon

Bug 1537912: Allow the 'login' link to show when sidebars exist

There was a setting to stop the login link (top right) from showing if
there were sidebars on logged out homepage. This became a problem if
the login box was turned off (not counted as a sidebar block for some
reason) via $cfg->showloginsideblock = false;

But the top right login link should always show when logged out
whether a sidebar is in play or not.

behatnotneeded

Change-Id: I8d6c1916f165285afb1f0210a0ae9b364f3a7a4f
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 71d4590a
......@@ -710,6 +710,7 @@ EOF;
),
);
}
$smarty->assign('SHOWLOGINBLOCK', $isloginblockvisible);
if (get_config('enablenetworking')) {
require_once(get_config('docroot') .'api/xmlrpc/lib.php');
......
......@@ -18,7 +18,7 @@
{$languageform|safe}
</li>
{/if}
{if !$LOGGEDIN && !$SIDEBARS && !$LOGINPAGE} <li id="loginlink"><a href="{$WWWROOT}?login" accesskey="l">{str tag="login"}</a></li> {/if}
{if !$LOGGEDIN && !$SHOWLOGINBLOCK && !$LOGINPAGE} <li id="loginlink"><a href="{$WWWROOT}?login" accesskey="l">{str tag="login"}</a></li> {/if}
</ul>
</div>
......
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