X-Git-Url: https://git.cyclocoop.org/admin/?a=blobdiff_plain;f=includes%2FParser.php;h=7760860ac27363e19014f84cfb0f073ba5b22865;hb=bb955bbb009cfc707139dc128642f5496798fd41;hp=40aa81e8fb580d83e02246764a699c55c2351bbd;hpb=a6fb61e7846bbcec90f78c79e4335669bd5bb063;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Parser.php b/includes/Parser.php index 40aa81e8fb..7760860ac2 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -2508,7 +2508,7 @@ class Parser # If there are any tags, only include them if ( in_string( '', $text ) && in_string( '', $text ) ) { - preg_match_all( '/(.*?)<\/onlyinclude>\n?/s', $text, $m ); + preg_match_all( '/\n?(.*?)\n?<\/onlyinclude>/s', $text, $m ); $text = ''; foreach ($m[1] as $piece) $text .= $piece;