r13920 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r13919‎ | r13920 | r13921 >
Date:13:55, 29 April 2006
Author:hashar
Status:old
Tags:
Comment:
Fix bug in wfMsgExt under PHP 5.1.2
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/GlobalFunctions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/GlobalFunctions.php
@@ -574,7 +574,8 @@
575575 $string = $wgOut->parse( $string, true, true );
576576 } elseif ( in_array('parseinline', $options) ) {
577577 $string = $wgOut->parse( $string, true, true );
578 - if( preg_match( "~^<p>(.*)\n?</p>$~", $string, $m = null ) ) {
 578+ $m = array();
 579+ if( preg_match( "~^<p>(.*)\n?</p>$~", $string, $m ) ) {
579580 $string = $m[1];
580581 }
581582 } elseif ( in_array('escape', $options) ) {
Index: trunk/phase3/RELEASE-NOTES
@@ -140,6 +140,7 @@
141141 * The returnto parameter is now actually used by SpecialUserlogin.php
142142 * Parser can now know that it is parsing an interface message
143143 * (bug 4737) MediaWiki:Viewcount supports {{PLURAL}} now
 144+* Fix bug in wfMsgExt under PHP 5.1.2
144145
145146 == Compatibility ==
146147

Status & tagging log