From e44be00ebd49fc873b16efc7d3ef6ab4b85d5659 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 30 Jun 2020 09:59:25 +0200 Subject: [PATCH] LSformElement::password: fix confirmChangeQuestion translation --- src/includes/class/class.LSformElement_password.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/includes/class/class.LSformElement_password.php b/src/includes/class/class.LSformElement_password.php index ec1ee076..69d00c56 100644 --- a/src/includes/class/class.LSformElement_password.php +++ b/src/includes/class/class.LSformElement_password.php @@ -168,7 +168,9 @@ class LSformElement_password extends LSformElement { ); if ($params['confirmChange']) { - $params['confirmChangeQuestion'] = getFData(__($this -> getParam('html_options.confirmChangeQuestion', '%{label}: Do you confirm the password change?')), $this -> label); + $defaultConfirmChangeQuestion = ___('%{label}: Do you confirm the password change?'); + $params['confirmChangeQuestion'] = getFData(__($this -> getParam('html_options.confirmChangeQuestion', $defaultConfirmChangeQuestion)), $this -> label); + } if ($params['confirmInput']) { $defaultConfirmInputError = ___('Passwords entered did not match.');