From 0634d4ebba9f9fd37ac5e053bc535abf4cf4f841 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Fri, 01 Aug 2008 17:46:49 -0400
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 deletions(-)
diff --git a/interface/web/tools/lib/lang/en_usersettings.lng b/interface/web/tools/lib/lang/en_usersettings.lng
index 02e5d6e..ca6ca60 100644
--- a/interface/web/tools/lib/lang/en_usersettings.lng
+++ b/interface/web/tools/lib/lang/en_usersettings.lng
@@ -3,4 +3,5 @@
$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 eb52f58..d618ef0 100644
--- a/interface/web/tools/user_settings.php
+++ b/interface/web/tools/user_settings.php
@@ -77,7 +77,7 @@
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');
}
}
--
Gitblit v1.9.1