Commit f1bd4df8 authored by Richard Mansfield's avatar Richard Mansfield Committed by Gerrit Code Review
Browse files

Merge "Add login link for convenience of logged out visitors"

parents 46c7e115 cf19709a
...@@ -983,6 +983,7 @@ function auth_draw_login_page($message=null, Pieform $form=null) { ...@@ -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 = smarty(array(), array(), array(), array('pagehelp' => false, 'sidebars' => false));
$smarty->assign('login_form', $loginform); $smarty->assign('login_form', $loginform);
$smarty->assign('PAGEHEADING', get_string('loginto', 'mahara', get_config('sitename'))); $smarty->assign('PAGEHEADING', get_string('loginto', 'mahara', get_config('sitename')));
$smarty->assign('LOGINPAGE', true);
$smarty->display('login.tpl'); $smarty->display('login.tpl');
exit; exit;
} }
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
</form> </form>
</li> </li>
{/if} {/if}
{if !$LOGGEDIN && !$SIDEBARS && !$LOGINPAGE} <li><a href="{$WWWROOT}?login" accesskey="l">{str tag="login"}</a></li> {/if}
</ul> </ul>
</div> </div>
......
Supports Markdown
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