r11921 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r11920‎ | r11921 | r11922 >
Date:09:27, 3 December 2005
Author:avar
Status:old
Tags:
Comment:
* <onlyinclude> whitespace, only strip the last newline
Modified paths:
  • /trunk/phase3/includes/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Parser.php
@@ -2508,7 +2508,7 @@
25092509
25102510 # If there are any <onlyinclude> tags, only include them
25112511 if ( in_string( '<onlyinclude>', $text ) && in_string( '</onlyinclude>', $text ) ) {
2512 - preg_match_all( '/<onlyinclude>\n?(.*?)\n?<\/onlyinclude>/s', $text, $m );
 2512+ preg_match_all( '/<onlyinclude>(.*?)\n?<\/onlyinclude>/s', $text, $m );
25132513 $text = '';
25142514 foreach ($m[1] as $piece)
25152515 $text .= $piece;

Status & tagging log