Commit cf19709a authored by Melissa Draper's avatar Melissa Draper

Add login link for convenience of logged out visitors

Bug #718842 Link excluded from pages with sidebars and when
login form has been drawn.

Change-Id: Ibbcbc3c749bfbb88fd2011fee90bb3465ee5f7fa
Signed-off-by: default avatarMelissa Draper <melissa@catalyst.net.nz>
parent ea39b3f0
......@@ -983,6 +983,7 @@ function auth_draw_login_page($message=null, Pieform $form=null) {
$smarty = smarty(array(), array(), array(), array('pagehelp' => false, 'sidebars' => false));
$smarty->assign('login_form', $loginform);
$smarty->assign('PAGEHEADING', get_string('loginto', 'mahara', get_config('sitename')));
$smarty->assign('LOGINPAGE', true);
$smarty->display('login.tpl');
exit;
}
......
......@@ -22,6 +22,7 @@
</form>
</li>
{/if}
{if !$LOGGEDIN && !$SIDEBARS && !$LOGINPAGE} <li><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