http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90789

Revision: 90789
Author:   aaron
Date:     2011-06-25 19:29:49 +0000 (Sat, 25 Jun 2011)
Log Message:
-----------
Fixed fatal due to removal of Article::getSection()

Modified Paths:
--------------
    trunk/extensions/FlaggedRevs/presentation/FlaggedPageView.php

Modified: trunk/extensions/FlaggedRevs/presentation/FlaggedPageView.php
===================================================================
--- trunk/extensions/FlaggedRevs/presentation/FlaggedPageView.php       
2011-06-25 19:29:15 UTC (rev 90788)
+++ trunk/extensions/FlaggedRevs/presentation/FlaggedPageView.php       
2011-06-25 19:29:49 UTC (rev 90789)
@@ -908,7 +908,7 @@
         * Adds stable version tags to page when editing
         */
        public function addToEditView( EditPage $editPage ) {
-               global $wgUser;
+               global $wgUser, $wgParser;
                $this->load();
                # Must be reviewable. UI may be limited to unobtrusive 
patrolling system.
                if ( !$this->article->isReviewable() ) {
@@ -960,7 +960,7 @@
                                $section = ( $editPage->section == "" ) ?
                                        false : intval( $editPage->section );
                                if ( $section !== false ) {
-                                       $text = $this->article->getSection( 
$text, $section );
+                                       $wgParser->getSection( $text, $section 
);
                                }
                                if ( $text !== false && strcmp( $text, 
$editPage->textbox1 ) !== 0 ) {
                                        $diffEngine = new DifferenceEngine( 
$this->article->getTitle() );


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to