Qual: Move error string in errors lang file.

This commit is contained in:
Laurent Destailleur 2008-11-20 21:53:56 +00:00
parent da41dccb2e
commit e8f1998742
2 changed files with 3 additions and 2 deletions

View File

@ -174,8 +174,9 @@ if ($_POST["action"] == 'add' && $canadduser)
}
else
{
$langs->load("errors");
$db->rollback();
$message='<div class="error">'.$edituser->error.'</div>';
$message='<div class="error">'.$langs->trans($edituser->error).'</div>';
$action="create"; // Go back to create page
}

View File

@ -85,7 +85,7 @@ if ($_POST["action"] == 'add')
}
else
{
$langs->trans("errors");
$langs->load("errors");
$db->rollback();
$message='<div class="error">'.$langs->trans("ErrorGroupAlreadyExists",$editgroup->nom).'</div>';
$action="create"; // Go back to create page