r90789 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90788‎ | r90789 | r90790 >
Date:19:29, 25 June 2011
Author:aaron
Status:resolved
Tags:
Comment:
Fixed fatal due to removal of Article::getSection()
Modified paths:
  • /trunk/extensions/FlaggedRevs/presentation/FlaggedPageView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/presentation/FlaggedPageView.php
@@ -908,7 +908,7 @@
909909 * Adds stable version tags to page when editing
910910 */
911911 public function addToEditView( EditPage $editPage ) {
912 - global $wgUser;
 912+ global $wgUser, $wgParser;
913913 $this->load();
914914 # Must be reviewable. UI may be limited to unobtrusive patrolling system.
915915 if ( !$this->article->isReviewable() ) {
@@ -960,7 +960,7 @@
961961 $section = ( $editPage->section == "" ) ?
962962 false : intval( $editPage->section );
963963 if ( $section !== false ) {
964 - $text = $this->article->getSection( $text, $section );
 964+ $wgParser->getSection( $text, $section );
965965 }
966966 if ( $text !== false && strcmp( $text, $editPage->textbox1 ) !== 0 ) {
967967 $diffEngine = new DifferenceEngine( $this->article->getTitle() );

Follow-up revisions

RevisionCommit summaryAuthorDate
r90793*sigh*...added bit left off of r90789aaron19:39, 25 June 2011
r92317REL1_18 FR: r87606, r87617, r87669, r87690, r87700, r90388, r90419, r90741, r...reedy21:53, 15 July 2011

Status & tagging log