From 77d041c9def3c75daa6079b0b468b6ceab49978b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@users.sourceforge.net> Date: Mon, 18 Jul 2011 01:44:15 +0000 Subject: [PATCH] Qual: Uniformize code --- htdocs/comm/action/fiche.php | 7 +++---- htdocs/ecm/index.php | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index e784268506b..92b133e7d2d 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -24,7 +24,7 @@ * \file htdocs/comm/action/fiche.php * \ingroup agenda * \brief Page for event card - * \version $Id$ + * \version $Id: fiche.php,v 1.226 2011/07/18 01:44:15 eldy Exp $ */ require("../../main.inc.php"); @@ -471,8 +471,7 @@ if ($action == 'create') if (GETPOST("actioncode") == 'AC_RDV') print_fiche_titre ($langs->trans("AddActionRendezVous")); else print_fiche_titre ($langs->trans("AddAnAction")); - if ($mesg) print $mesg.'<br>'; - else print "<br>"; + dol_htmloutput_mesg($mesg); print '<table class="border" width="100%">'; @@ -1023,7 +1022,7 @@ if ($id) $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/18 01:44:15 $ - $Revision: 1.226 $'); /** diff --git a/htdocs/ecm/index.php b/htdocs/ecm/index.php index 523dcb1ea90..25a5c6a0d9f 100644 --- a/htdocs/ecm/index.php +++ b/htdocs/ecm/index.php @@ -21,7 +21,7 @@ * \file htdocs/ecm/index.php * \ingroup ecm * \brief Main page for ECM section area - * \version $Id: index.php,v 1.101 2011/07/06 21:12:34 eldy Exp $ + * \version $Id: index.php,v 1.102 2011/07/18 01:44:15 eldy Exp $ * \author Laurent Destailleur */ @@ -372,7 +372,7 @@ if (GETPOST('action') == 'delete') if ($ret == 'html') print '<br>'; } -if ($mesg) { print $mesg."<br>"; } +dol_htmloutput_mesg($mesg); // Toolbar //$head = ecm_prepare_head_fm($fac); @@ -889,5 +889,5 @@ else // End of page $db->close(); -llxFooter('$Date: 2011/07/06 21:12:34 $ - $Revision: 1.101 $'); +llxFooter('$Date: 2011/07/18 01:44:15 $ - $Revision: 1.102 $'); ?> -- GitLab