From: x2003bruneau Date: Mon, 18 Dec 2006 21:28:58 +0000 (+0000) Subject: Remove comment from CSS before including it in the NL X-Git-Tag: xorg/0.9.13~175 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=0ba809d7c9a4802ebda553cca0d4923c2cc998a6;p=platal.git Remove comment from CSS before including it in the NL git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1291 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/include/newsletter.inc.php b/include/newsletter.inc.php index 6c31a41..112686d 100644 --- a/include/newsletter.inc.php +++ b/include/newsletter.inc.php @@ -151,7 +151,8 @@ class NewsLetter function getCss() { - return file_get_contents(dirname(__FILE__) . '/../htdocs/css/nl.css'); + $css = file_get_contents(dirname(__FILE__) . '/../htdocs/css/nl.css'); + return preg_replace('@/\*.*?\*/@s', '', $css); } // }}}