From 83d473f0d751de83b273c25942376e43ea39dbac Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 4 Sep 2010 17:18:13 +0000 Subject: [PATCH] Qual: Uniformize code --- htdocs/commande/note.php | 6 +++--- htdocs/fourn/commande/note.php | 9 +++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/htdocs/commande/note.php b/htdocs/commande/note.php index 98043757c31..1c16d1e337c 100644 --- a/htdocs/commande/note.php +++ b/htdocs/commande/note.php @@ -124,7 +124,7 @@ if ($id > 0 || ! empty($ref)) print '
'; print ''; print ''; - print '
"; + print '
"; } else { @@ -132,14 +132,14 @@ if ($id > 0 || ! empty($ref)) } print ""; - // Note priv�e + // Note private if (! $user->societe_id) { print ''.$langs->trans("NotePrivate").' :'; print ''; if ($_GET["action"] == 'edit') { - print '
"; + print '
"; } else { diff --git a/htdocs/fourn/commande/note.php b/htdocs/fourn/commande/note.php index 6abcae8d6bc..7f264d4f09b 100644 --- a/htdocs/fourn/commande/note.php +++ b/htdocs/fourn/commande/note.php @@ -72,7 +72,7 @@ $html = new Form($db); /* */ /* *************************************************************************** */ -$now=gmmktime(); +$now=dol_now(); $id = $_GET['id']; $ref= $_GET['ref']; @@ -154,7 +154,7 @@ if ($id > 0 || ! empty($ref)) { print ''.$langs->trans("NotePrivate").''; print ''; - if ($user->rights->fournisseur->commande->creer) print ''; print ''; @@ -171,8 +171,9 @@ if ($id > 0 || ! empty($ref)) } else { - /* Commande non trouv�e */ - print "Commande inexistante"; + /* Order not found */ + $langs->load("errors"); + print $langs->trans("ErrorRecordNotFound"); } }