Qual: Move error string in errors lang file.
This commit is contained in:
parent
da41dccb2e
commit
e8f1998742
@ -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
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user