Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -574,7 +574,8 @@ |
575 | 575 | $string = $wgOut->parse( $string, true, true ); |
576 | 576 | } elseif ( in_array('parseinline', $options) ) { |
577 | 577 | $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 ) ) { |
579 | 580 | $string = $m[1]; |
580 | 581 | } |
581 | 582 | } elseif ( in_array('escape', $options) ) { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -140,6 +140,7 @@ |
141 | 141 | * The returnto parameter is now actually used by SpecialUserlogin.php |
142 | 142 | * Parser can now know that it is parsing an interface message |
143 | 143 | * (bug 4737) MediaWiki:Viewcount supports {{PLURAL}} now |
| 144 | +* Fix bug in wfMsgExt under PHP 5.1.2 |
144 | 145 | |
145 | 146 | == Compatibility == |
146 | 147 | |