From 0634d4ebba9f9fd37ac5e053bc535abf4cf4f841 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Fri, 1 Aug 2008 21:46:49 +0000
Subject: [PATCH] Added a missing error message in tools module.

---
 interface/web/tools/lib/lang/en_usersettings.lng | 1 +
 interface/web/tools/user_settings.php            | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/interface/web/tools/lib/lang/en_usersettings.lng b/interface/web/tools/lib/lang/en_usersettings.lng
index 02e5d6e891..ca6ca603a1 100644
--- a/interface/web/tools/lib/lang/en_usersettings.lng
+++ b/interface/web/tools/lib/lang/en_usersettings.lng
@@ -3,4 +3,5 @@ $wb["passwort_txt"] = 'Password';
 $wb["language_txt"] = 'Language';
 $wb["btn_save_txt"] = 'Save';
 $wb["btn_cancel_txt"] = 'Cancel';
+$wb["password_mismatch"] = 'The password in the second password field does not match the first password.';
 ?>
\ No newline at end of file
diff --git a/interface/web/tools/user_settings.php b/interface/web/tools/user_settings.php
index eb52f5812a..d618ef08d6 100644
--- a/interface/web/tools/user_settings.php
+++ b/interface/web/tools/user_settings.php
@@ -77,7 +77,7 @@ class page_action extends tform_actions {
 		global $app, $conf;
 		
 		if($_POST['passwort'] != $_POST['passwort2']) {
-			$app->tform->errorMessage = 'The passwords in the second password field does not match the first password.';
+			$app->tform->errorMessage = $app->tform->lng('password_mismatch');
 		}
 		
 	}
-- 
GitLab