From: x2000habouzit Date: Sat, 4 Sep 2004 21:58:22 +0000 (+0000) Subject: no more stupid warnings for the NL X-Git-Tag: xorg/old~1582 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=3ea37d518e8236c2434ed24857c0e36879d48aac;p=platal.git no more stupid warnings for the NL closes: FS#69 it's good to see we write clean xhtml code :) --- diff --git a/htdocs/newsletter.php b/htdocs/newsletter.php index ccbf3c1..31a7d49 100644 --- a/htdocs/newsletter.php +++ b/htdocs/newsletter.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: newsletter.php,v 1.6 2004-09-02 22:27:05 x2000habouzit Exp $ + $Id: newsletter.php,v 1.7 2004-09-04 21:58:22 x2000habouzit Exp $ ***************************************************************************/ require("auto.prepend.inc.php"); @@ -44,7 +44,7 @@ if (($res)&&(list($nl_date, $nl_titre, $nl_text) = mysql_fetch_row($res))) { $mymail->addHeader("From: \"Equipe polytechnique.org\" "); $mymail->setBody("Suite à ta demande sur le site web, nous te réexpédions cette lettre d'informations archivée.\r\n\r\n".strip_tags($nl_text)); $mymail->send(); - $page->assign('erreur', '

Mail envoyé.

'); + $page->assign('erreur', 'Mail envoyé.'); } } diff --git a/templates/newsletter.tpl b/templates/newsletter.tpl index 528e522..8c57c96 100644 --- a/templates/newsletter.tpl +++ b/templates/newsletter.tpl @@ -17,13 +17,13 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: newsletter.tpl,v 1.7 2004-08-31 11:25:39 x2000habouzit Exp $ + $Id: newsletter.tpl,v 1.8 2004-09-04 21:58:22 x2000habouzit Exp $ ***************************************************************************} {dynamic} -{$erreur} +

{$erreur}

{if $nl_titre} @@ -38,7 +38,7 @@ - {$nl_text|smarty:nodefaults|replace:" ":" "|nl2br} + {$nl_text|smarty:nodefaults|replace:"":""|replace:"":""|nl2br}