r69991 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69990‎ | r69991 | r69992 >
Date:09:00, 27 July 2010
Author:reedy
Status:ok
Tags:
Comment:
Switch from "deprecated" Article->getSection() to use Parser to get section

Fixes dynamic method called as static also
Modified paths:
  • /trunk/extensions/ConfirmEdit/ConfirmEdit_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ConfirmEdit/ConfirmEdit_body.php
@@ -712,7 +712,8 @@
713713 } else {
714714 $text = $rev->getText();
715715 if ( $section != '' ) {
716 - return Article::getSection( $text, $section );
 716+ global $wgParser;
 717+ return $wgParser->getSection( $text, $section );
717718 } else {
718719 return $text;
719720 }

Status & tagging log