From 1f5be49d65537d1caf68e13c630a8dbeb4d7fdab Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Mon, 21 Jul 2014 18:21:54 +1200 Subject: [PATCH] MDL-46449 fix username prompt in login block when authloginviaemail enabled --- blocks/login/block_login.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/blocks/login/block_login.php b/blocks/login/block_login.php index be63064595828..2c4eda4aa7205 100644 --- a/blocks/login/block_login.php +++ b/blocks/login/block_login.php @@ -70,10 +70,15 @@ function get_content () { $this->content->text = ''; if (!isloggedin() or isguestuser()) { // Show the block + if (empty($CFG->authloginviaemail)) { + $strusername = get_string('username'); + } else { + $strusername = get_string('usernameemail'); + } $this->content->text .= "\n".'
'; - $this->content->text .= '
'; + $this->content->text .= '
'; $this->content->text .= '
'; $this->content->text .= '
';