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 @@
713
713
} else {
714
714
$text = $rev->getText();
715
715
if ( $section != '' ) {
716
- return Article::getSection( $text, $section );
716
+ global $wgParser;
717
+ return $wgParser->getSection( $text, $section );
717
718
} else {
718
719
return $text;
719
720
}
Status & tagging log
21:53, 29 January 2011
😂
(
talk
|
contribs
)
changed the
tags
for r69991
[
removed:
chad]
21:53, 29 January 2011
😂
(
talk
|
contribs
)
changed the
status
of r69991
[
removed:
new
added:
ok]
01:18, 26 January 2011
MarkAHershberger
(
talk
|
contribs
)
changed the
tags
for r69991
[
added:
chad]