From 0ba809d7c9a4802ebda553cca0d4923c2cc998a6 Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Mon, 18 Dec 2006 21:28:58 +0000 Subject: [PATCH] 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 --- include/newsletter.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } // }}} -- 2.1.4