Remove comment from CSS before including it in the NL
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 18 Dec 2006 21:28:58 +0000 (21:28 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 18 Dec 2006 21:28:58 +0000 (21:28 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1291 839d8a87-29fc-0310-9880-83ba4fa771e5

include/newsletter.inc.php

index 6c31a41..112686d 100644 (file)
@@ -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);
     }
 
     // }}}