Index: trunk/extensions/FlaggedRevs/presentation/FlaggedPageView.php |
— | — | @@ -908,7 +908,7 @@ |
909 | 909 | * Adds stable version tags to page when editing |
910 | 910 | */ |
911 | 911 | public function addToEditView( EditPage $editPage ) { |
912 | | - global $wgUser; |
| 912 | + global $wgUser, $wgParser; |
913 | 913 | $this->load(); |
914 | 914 | # Must be reviewable. UI may be limited to unobtrusive patrolling system. |
915 | 915 | if ( !$this->article->isReviewable() ) { |
— | — | @@ -960,7 +960,7 @@ |
961 | 961 | $section = ( $editPage->section == "" ) ? |
962 | 962 | false : intval( $editPage->section ); |
963 | 963 | if ( $section !== false ) { |
964 | | - $text = $this->article->getSection( $text, $section ); |
| 964 | + $wgParser->getSection( $text, $section ); |
965 | 965 | } |
966 | 966 | if ( $text !== false && strcmp( $text, $editPage->textbox1 ) !== 0 ) { |
967 | 967 | $diffEngine = new DifferenceEngine( $this->article->getTitle() ); |