From 51708877ee404c39f7f4a69d78d4d39b7eb5df55 Mon Sep 17 00:00:00 2001 From: jengo Date: Mon, 11 Dec 2000 07:17:03 +0000 Subject: [PATCH] Fixed login screen message --- login.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/login.php b/login.php index 89a0919e00..3ef94efdf0 100755 --- a/login.php +++ b/login.php @@ -109,7 +109,14 @@ $tmpl->set_var("lang_message",stripslashes(lang("loginscreen_message"))); } } else { - $tmpl->set_var("lang_message",""); + // If the lastloginid cookies isn't set, we will default to english. + // Change this if you need. + $phpgw_info["user"]["preferences"]["common"]["lang"] = "en"; + $phpgw->translation->add_app("login"); + $phpgw->translation->add_app("loginscreen"); + if (lang("loginscreen_message") != "loginscreen_message*") { + $tmpl->set_var("lang_message",stripslashes(lang("loginscreen_message"))); + } } }