Per Nikerabbit's comment on r53897 (i.e. fix for r53832, second attempt): changed...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 1 Aug 2009 12:41:45 +0000 (12:41 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 1 Aug 2009 12:41:45 +0000 (12:41 +0000)
includes/parser/Parser.php

index ad4d732..c81cf84 100644 (file)
@@ -1705,7 +1705,7 @@ class Parser
 
                                if ( $ns == NS_CATEGORY ) {
                                        wfProfileIn( __METHOD__."-category" );
-                                       $s = preg_replace( "/(\s*\n)+\s*$/m", '', $s ); # bug 87
+                                       $s = preg_replace( "/(\s*\n)+\s*$/D", '', $s ); # bug 87
 
                                        if ( $wasblank ) {
                                                $sortkey = $this->getDefaultSort();