LSldapObject : Fixed translation of error message during validation.
authorBenjamin Renard <brenard@easter-eggs.com>
Tue, 3 Aug 2010 17:23:20 +0000 (19:23 +0200)
committerBenjamin Renard <brenard@easter-eggs.com>
Tue, 3 Aug 2010 17:23:20 +0000 (19:23 +0200)
public_html/includes/class/class.LSldapObject.php

index abba36f..b74342f 100644 (file)
@@ -437,7 +437,7 @@ class LSldapObject {
 
         // Définition du message d'erreur
         if (!empty($test['msg'])) {
-          $msg_error=getFData($test['msg'],$this,'getValue');
+          $msg_error=getFData(__($test['msg']),$this,'getValue');
         }
         else {
           $msg_error=getFData(_("The attribute %{attr} is not valid."),$attr -> getLabel());