r106972 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106971‎ | r106972 | r106973 >
Date:19:51, 21 December 2011
Author:mah
Status:ok
Tags:
Comment:
Bug 32710 - multiline <noinclude> / <includeonly> fails

Author: Christian Boltz
Modified paths:
  • /trunk/extensions/MultiBoilerplate/MultiBoilerplate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MultiBoilerplate/MultiBoilerplate.php
@@ -137,8 +137,8 @@
138138 * found one with a name as if it would do this, but it didn't seam to
139139 * work).
140140 */
141 - $content = preg_replace( '#<noinclude>(.*?)</noinclude>#', '', $content );
142 - $content = preg_replace( '#<includeonly>(.*?)</includeonly>#', '$1', $content );
 141+ $content = preg_replace( '#<noinclude>(.*?)</noinclude>#ims', '', $content );
 142+ $content = preg_replace( '#<includeonly>(.*?)</includeonly>#ims', '$1', $content );
143143 // TODO: Handle <onlyinclude> tags.
144144 $form->textbox1 = $content;
145145 }

Status & tagging log