From: cajus Date: Mon, 3 Mar 2008 16:24:27 +0000 (+0000) Subject: Updated error messages X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=eb4d6091d4aa977260ebecee0589d768dc676796;p=gosa.git Updated error messages git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9258 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/password-methods/class_password-methods-sha.inc b/gosa-core/include/password-methods/class_password-methods-sha.inc index 3cd0ea656..7c5d80c12 100644 --- a/gosa-core/include/password-methods/class_password-methods-sha.inc +++ b/gosa-core/include/password-methods/class_password-methods-sha.inc @@ -45,7 +45,7 @@ class passwordMethodsha extends passwordMethod }elseif (function_exists('mhash')) { $hash = "{SHA}" . base64_encode(mHash(MHASH_SHA1, $password)); }else{ - msg_dialog::display(_("Configuration error"), sprintf(_("Cannot use %s encryption: no PHP functions for sha1/mhash available"), 'SHA'), ERROR_DIALOG); + msg_dialog::display(_("Configuration error"), msgPool::missingext("mhash"), ERROR_DIALOG); return false; } diff --git a/gosa-core/include/password-methods/class_password-methods-ssha.inc b/gosa-core/include/password-methods/class_password-methods-ssha.inc index 3851c62d2..e2d6e27d5 100644 --- a/gosa-core/include/password-methods/class_password-methods-ssha.inc +++ b/gosa-core/include/password-methods/class_password-methods-ssha.inc @@ -48,7 +48,7 @@ class passwordMethodssha extends passwordMethod $salt=mhash_keygen_s2k(MHASH_SHA1,$pwd, substr(pack("h*",md5(mt_rand())),0,8),4); $pwd= "{SSHA}".base64_encode(mhash(MHASH_SHA1, $pwd.$salt).$salt); } else { - msg_dialog::display(_("Configuration error"), sprintf(_("Cannot use %s encryption: no PHP functions for sha1/mhash available"), 'SSHA'), ERROR_DIALOG); + msg_dialog::display(_("Configuration error"), msgPool::missingext("mhash"), ERROR_DIALOG); return(false); } return $pwd;