From ee1223e9e759a6b9673cb2719b7643a24fa1f842 Mon Sep 17 00:00:00 2001 From: Richard Mansfield Date: Thu, 16 Nov 2006 10:01:51 +1300 Subject: [PATCH] Use sitename on login page --- htdocs/auth/lib.php | 1 + htdocs/lang/en.utf8/mahara.php | 1 + htdocs/theme/default/templates/login.tpl | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/auth/lib.php b/htdocs/auth/lib.php index 7b03d50f66..32d06df84a 100644 --- a/htdocs/auth/lib.php +++ b/htdocs/auth/lib.php @@ -449,6 +449,7 @@ function auth_draw_login_page($message=null, Form $form=null) { } $smarty = smarty(); $smarty->assign('login_form', $loginform); + $smarty->assign('loginmessage', get_string('loginto', 'mahara', get_config('sitename'))); $smarty->display('login.tpl'); exit; } diff --git a/htdocs/lang/en.utf8/mahara.php b/htdocs/lang/en.utf8/mahara.php index 35adcc6a99..dd082cd697 100644 --- a/htdocs/lang/en.utf8/mahara.php +++ b/htdocs/lang/en.utf8/mahara.php @@ -42,6 +42,7 @@ $string['confirmpassword'] = 'Confirm password'; $string['loggedoutok'] = 'You have been logged out successfully'; $string['login'] = 'Log In'; $string['loginfailed'] = 'You have not provided the correct credentials to log in. Please check your username and password are correct.'; +$string['loginto'] = 'Log in to %s'; $string['newpassword'] = 'New Password'; $string['password'] = 'Password'; $string['passworddesc'] = 'Your password'; diff --git a/htdocs/theme/default/templates/login.tpl b/htdocs/theme/default/templates/login.tpl index 5220e7eec1..d309af8e07 100644 --- a/htdocs/theme/default/templates/login.tpl +++ b/htdocs/theme/default/templates/login.tpl @@ -1,6 +1,6 @@ {include file="header.tpl"} -

Log in to Mahara

+

{$loginmessage}

{$login_form} -- GitLab