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.'
';
- else print "
";
+ dol_htmloutput_mesg($mesg);
print '
';
@@ -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 '
';
}
-if ($mesg) { print $mesg."
"; }
+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 $');
?>