Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -332,7 +332,6 @@ |
333 | 333 | * @returns string |
334 | 334 | */ |
335 | 335 | public static function getTagMsg( $tag ) { |
336 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
337 | 336 | return wfMsgExt( "revreview-$tag", array( 'escapenoentities' ) ); |
338 | 337 | } |
339 | 338 | |
— | — | @@ -1310,7 +1309,6 @@ |
1311 | 1310 | return array("",""); // not reviewed |
1312 | 1311 | } |
1313 | 1312 | $css = FlaggedRevsXML::getQualityColor( $row->fr_quality ); |
1314 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
1315 | 1313 | $user = User::whois( $row->fr_user ); // FIXME: o(N) |
1316 | 1314 | $flags = explode(',',$row->fr_flags); |
1317 | 1315 | if( in_array('auto',$flags) ) { |
Index: trunk/extensions/FlaggedRevs/specialpages/Stabilization_body.php |
— | — | @@ -8,8 +8,6 @@ |
9 | 9 | { |
10 | 10 | public function __construct() { |
11 | 11 | parent::__construct( 'Stabilization', 'stablesettings' ); |
12 | | - wfLoadExtensionMessages( 'Stabilization' ); |
13 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
14 | 12 | } |
15 | 13 | |
16 | 14 | public function execute( $par ) { |
Index: trunk/extensions/FlaggedRevs/specialpages/UnreviewedPages_body.php |
— | — | @@ -8,8 +8,6 @@ |
9 | 9 | { |
10 | 10 | public function __construct() { |
11 | 11 | parent::__construct( 'UnreviewedPages', 'unreviewedpages' ); |
12 | | - wfLoadExtensionMessages( 'UnreviewedPages' ); |
13 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
14 | 12 | } |
15 | 13 | |
16 | 14 | public function execute( $par ) { |
Index: trunk/extensions/FlaggedRevs/specialpages/UnstablePages_body.php |
— | — | @@ -8,8 +8,6 @@ |
9 | 9 | { |
10 | 10 | public function __construct() { |
11 | 11 | parent::__construct( 'UnstablePages' ); |
12 | | - wfLoadExtensionMessages( 'UnstablePages' ); |
13 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
14 | 12 | } |
15 | 13 | |
16 | 14 | public function execute( $par ) { |
Index: trunk/extensions/FlaggedRevs/specialpages/RevisionReview_body.php |
— | — | @@ -26,7 +26,6 @@ |
27 | 27 | public function __construct() { |
28 | 28 | global $wgUser; |
29 | 29 | parent::__construct( 'RevisionReview', 'review' ); |
30 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
31 | 30 | $this->skin = $wgUser->getSkin(); |
32 | 31 | } |
33 | 32 | |
— | — | @@ -159,7 +158,6 @@ |
160 | 159 | // Basic permission check |
161 | 160 | if( $wgUser->isAllowed( 'review' ) ) { |
162 | 161 | if( $wgUser->isBlocked() ) { |
163 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
164 | 162 | $blocklist = SpecialPage::getTitleFor( 'Ipblocklist' ); |
165 | 163 | $blocklog = $blocklist->getFullUrl( 'ip=' . urlencode('#'.$wgUser->getBlockId()) ); |
166 | 164 | return '<err#><h2>'.wfMsgHtml('blockedtitle').'</h2>'. |
— | — | @@ -897,7 +895,6 @@ |
898 | 896 | $revId, $stableId, $approve, $auto=false ) |
899 | 897 | { |
900 | 898 | global $wgFlaggedRevsLogInRC; |
901 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
902 | 899 | $log = new LogPage( 'review', $auto ? false : $wgFlaggedRevsLogInRC, $auto ? "skipUDP" : "UDP" ); |
903 | 900 | # ID, accuracy, depth, style |
904 | 901 | $ratings = array(); |
Index: trunk/extensions/FlaggedRevs/specialpages/QualityOversight_body.php |
— | — | @@ -8,8 +8,6 @@ |
9 | 9 | { |
10 | 10 | public function __construct() { |
11 | 11 | SpecialPage::SpecialPage( 'QualityOversight' ); |
12 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
13 | | - wfLoadExtensionMessages( 'QualityOversight' ); |
14 | 12 | } |
15 | 13 | |
16 | 14 | public function execute( $par ) { |
Index: trunk/extensions/FlaggedRevs/specialpages/StableVersions_body.php |
— | — | @@ -8,8 +8,6 @@ |
9 | 9 | { |
10 | 10 | public function __construct() { |
11 | 11 | parent::__construct( 'StableVersions' ); |
12 | | - wfLoadExtensionMessages( 'StableVersions' ); |
13 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
14 | 12 | } |
15 | 13 | |
16 | 14 | public function execute( $par ) { |
Index: trunk/extensions/FlaggedRevs/specialpages/ValidationStatistics_body.php |
— | — | @@ -8,8 +8,6 @@ |
9 | 9 | { |
10 | 10 | public function __construct() { |
11 | 11 | parent::__construct( 'ValidationStatistics' ); |
12 | | - wfLoadExtensionMessages( 'ValidationStatistics' ); |
13 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
14 | 12 | } |
15 | 13 | |
16 | 14 | public function execute( $par ) { |
Index: trunk/extensions/FlaggedRevs/specialpages/OldReviewedPages_body.php |
— | — | @@ -9,8 +9,6 @@ |
10 | 10 | public function __construct() { |
11 | 11 | parent::__construct( 'OldReviewedPages' ); |
12 | 12 | $this->includable( true ); |
13 | | - wfLoadExtensionMessages( 'OldReviewedPages' ); |
14 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
15 | 13 | } |
16 | 14 | |
17 | 15 | public function execute( $par ) { |
Index: trunk/extensions/FlaggedRevs/specialpages/ProblemChanges_body.php |
— | — | @@ -9,9 +9,6 @@ |
10 | 10 | public function __construct() { |
11 | 11 | parent::__construct( 'ProblemChanges' ); |
12 | 12 | $this->includable( true ); |
13 | | - wfLoadExtensionMessages( 'ProblemChanges' ); |
14 | | - wfLoadExtensionMessages( 'OldReviewedPages' ); |
15 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
16 | 13 | } |
17 | 14 | |
18 | 15 | public function execute( $par ) { |
Index: trunk/extensions/FlaggedRevs/specialpages/ReviewedPages_body.php |
— | — | @@ -8,8 +8,6 @@ |
9 | 9 | { |
10 | 10 | public function __construct() { |
11 | 11 | parent::__construct( 'ReviewedPages' ); |
12 | | - wfLoadExtensionMessages( 'ReviewedPages' ); |
13 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
14 | 12 | } |
15 | 13 | |
16 | 14 | public function execute( $par ) { |
Index: trunk/extensions/FlaggedRevs/specialpages/StablePages_body.php |
— | — | @@ -8,8 +8,6 @@ |
9 | 9 | { |
10 | 10 | public function __construct() { |
11 | 11 | parent::__construct( 'StablePages' ); |
12 | | - wfLoadExtensionMessages( 'StablePages' ); |
13 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
14 | 12 | } |
15 | 13 | |
16 | 14 | public function execute( $par ) { |
Index: trunk/extensions/FlaggedRevs/FlaggedRevsXML.php |
— | — | @@ -50,7 +50,6 @@ |
51 | 51 | * @returns string |
52 | 52 | */ |
53 | 53 | public static function getLevelMenu( $selected=null, $all='revreview-filter-all', $max=2 ) { |
54 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
55 | 54 | $s = "<label for='wpLevel'>" . wfMsgHtml('revreview-levelfilter') . "</label> "; |
56 | 55 | $s .= Xml::openElement( 'select', array('name' => 'level','id' => 'wpLevel') ); |
57 | 56 | if( $all !== false ) |
— | — | @@ -71,7 +70,6 @@ |
72 | 71 | * @returns string |
73 | 72 | */ |
74 | 73 | public static function getPrecedenceMenu( $selected=null ) { |
75 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
76 | 74 | $s = Xml::openElement( 'select', array('name' => 'precedence','id' => 'wpPrecedence') ); |
77 | 75 | $s .= Xml::option( wfMsg( 'revreview-lev-sighted' ), FLAGGED_VIS_LATEST, |
78 | 76 | $selected==FLAGGED_VIS_LATEST ); |
— | — | @@ -91,7 +89,6 @@ |
92 | 90 | * @returns string |
93 | 91 | */ |
94 | 92 | public static function getStatusFilterMenu( $selected=null ) { |
95 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
96 | 93 | $s = "<label for='wpStatus'>" . wfMsgHtml('revreview-statusfilter') . "</label> "; |
97 | 94 | $s .= Xml::openElement( 'select', array('name' => 'status','id' => 'wpStatus') ); |
98 | 95 | $s .= Xml::option( wfMsg( "revreview-filter-all" ), -1, $selected===-1 ); |
— | — | @@ -108,7 +105,6 @@ |
109 | 106 | * @returns string |
110 | 107 | */ |
111 | 108 | public static function getAutoFilterMenu( $selected=null ) { |
112 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
113 | 109 | $s = "<label for='wpApproved'>" . wfMsgHtml('revreview-typefilter') . "</label> "; |
114 | 110 | $s .= Xml::openElement( 'select', array('name' => 'automatic','id' => 'wpApproved') ); |
115 | 111 | $s .= Xml::option( wfMsg( "revreview-filter-all" ), -1, $selected===-1 ); |
— | — | @@ -147,7 +143,6 @@ |
148 | 144 | * Generates a review box/tag |
149 | 145 | */ |
150 | 146 | public static function addTagRatings( $flags, $prettyBox = false, $css='' ) { |
151 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
152 | 147 | $tag = ''; |
153 | 148 | if( $prettyBox ) { |
154 | 149 | $tag .= "<table id='mw-revisionratings-box' align='center' class='$css' cellpadding='0'>"; |
— | — | @@ -196,7 +191,6 @@ |
197 | 192 | $frev, $shtml, $revsSince, $stable=true, $synced=false, $old=false |
198 | 193 | ) { |
199 | 194 | global $wgLang; |
200 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
201 | 195 | # Get quality level |
202 | 196 | $flags = $frev->getTags(); |
203 | 197 | $quality = FlaggedRevs::isQuality( $flags ); |
— | — | @@ -245,7 +239,6 @@ |
246 | 240 | } |
247 | 241 | |
248 | 242 | public static function ratingToggle() { |
249 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
250 | 243 | return "<a id='mw-revisiontoggle' class='flaggedrevs_toggle' style='display:none;'" . |
251 | 244 | " onclick='toggleRevRatings()' title='" . wfMsgHtml('revreview-toggle-title') . "' >" . |
252 | 245 | wfMsg( 'revreview-toggle' ) . "</a>"; |
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -36,8 +36,6 @@ |
37 | 37 | if( !$fa || !$fa->isReviewable(true) ) { |
38 | 38 | return true; |
39 | 39 | } |
40 | | - # Load required messages |
41 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
42 | 40 | # Get the review tags on this wiki |
43 | 41 | $rTags = FlaggedRevs::getJSTagParams(); |
44 | 42 | # Get page-specific meta-data |
— | — | @@ -1386,7 +1384,6 @@ |
1387 | 1385 | $newGroups = $groups ; |
1388 | 1386 | array_push( $newGroups, 'editor' ); |
1389 | 1387 | |
1390 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); // load UI messages |
1391 | 1388 | global $wgFlaggedRevsAutopromoteInRC; |
1392 | 1389 | $log = new LogPage( 'rights', $wgFlaggedRevsAutopromoteInRC ); |
1393 | 1390 | $log->addEntry( 'rights', $user->getUserPage(), wfMsg('rights-editor-autosum'), |
— | — | @@ -1486,8 +1483,6 @@ |
1487 | 1484 | # Param format is <rev id, last stable id, rev timestamp>. |
1488 | 1485 | if( in_array($action,$actionsValid) && isset($params[0]) ) { |
1489 | 1486 | $revId = (int)$params[0]; // the reviewed revision |
1490 | | - # Load required messages |
1491 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
1492 | 1487 | # Don't show diff if param missing or rev IDs are the same |
1493 | 1488 | if( !empty($params[1]) && $revId != $params[1] ) { |
1494 | 1489 | $rv = '(' . $wgUser->getSkin()->makeKnownLinkObj( $title, |
— | — | @@ -1724,7 +1719,6 @@ |
1725 | 1720 | return true; // page is not listed in pending edit table |
1726 | 1721 | if( !FlaggedRevs::isPageReviewable($rc->getTitle()) ) |
1727 | 1722 | return true; // confirm that page is in reviewable namespace |
1728 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
1729 | 1723 | $rlink = $list->skin->makeKnownLinkObj( $rc->getTitle(), wfMsg('revreview-reviewlink'), |
1730 | 1724 | 'oldid='.intval($rc->mAttribs['fpp_rev_id']).'&diff=cur' ); |
1731 | 1725 | $articlelink .= " <span class='mw-fr-reviewlink'>($rlink)</span>"; |
— | — | @@ -1778,7 +1772,6 @@ |
1779 | 1773 | # the user decide if he/she wants it reviewed on the spot. One might |
1780 | 1774 | # do this if he/she just saw the diff-to-stable and *then* decided to edit. |
1781 | 1775 | if( !$srev || $srev->getRevId() != $editPage->getArticle()->getLatest() ) { |
1782 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
1783 | 1776 | $checkboxes['reviewed'] = ''; |
1784 | 1777 | $reviewLabel = wfMsgExt('revreview-flag', array('parseinline')); |
1785 | 1778 | $attribs = array( 'tabindex' => ++$tabindex, 'id' => 'wpReviewEdit' ); |
— | — | @@ -1818,7 +1811,6 @@ |
1819 | 1812 | ); |
1820 | 1813 | # Give a notice if pages on the wachlist are outdated |
1821 | 1814 | if( $watchedOutdated ) { |
1822 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
1823 | 1815 | $notice .= "<div id='mw-oldreviewed-notice' class='plainlinks fr-watchlist-old-notice'>" . |
1824 | 1816 | wfMsgExt('flaggedrevs-watched-pending',array('parseinline')) . "</div>"; |
1825 | 1817 | # Otherwise, give a notice if there is a large backlog in general |
— | — | @@ -1836,7 +1828,6 @@ |
1837 | 1829 | 'fp_pending_since IS NOT NULL', __METHOD__ ); |
1838 | 1830 | } |
1839 | 1831 | if( $unreviewed > .02*$pages ) { |
1840 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
1841 | 1832 | $notice .= "<div id='mw-oldreviewed-notice' class='plainlinks fr-backlognotice'>" . |
1842 | 1833 | wfMsgExt('flaggedrevs-backlog',array('parseinline')) . "</div>"; |
1843 | 1834 | } |
Index: trunk/extensions/FlaggedRevs/FlaggedArticleView.php |
— | — | @@ -142,7 +142,6 @@ |
143 | 143 | $frev = FlaggedRevision::newFromTitle( $this->article->getTitle(), $revID ); |
144 | 144 | # Give a notice if this rev ID corresponds to a reviewed version... |
145 | 145 | if( !is_null($frev) ) { |
146 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
147 | 146 | $time = $wgLang->date( $frev->getTimestamp(), true ); |
148 | 147 | $flags = $frev->getTags(); |
149 | 148 | $quality = FlaggedRevs::isQuality( $flags ); |
— | — | @@ -181,8 +180,6 @@ |
182 | 181 | if( !$this->article->isReviewable() ) { |
183 | 182 | return true; |
184 | 183 | } |
185 | | - # Load required messages |
186 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
187 | 184 | $simpleTag = $old = $stable = false; |
188 | 185 | $tag = $prot = ''; |
189 | 186 | # Check the newest stable version. |
— | — | @@ -510,7 +507,6 @@ |
511 | 508 | return false; // not viewing the draft |
512 | 509 | } |
513 | 510 | # Conditions are met to show diff... |
514 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); // load required messages |
515 | 511 | $leftNote = $quality ? 'revreview-quality-title' : 'revreview-stable-title'; |
516 | 512 | $rClass = FlaggedRevsXML::getQualityColor( false ); |
517 | 513 | $lClass = FlaggedRevsXML::getQualityColor( (int)$quality ); |
— | — | @@ -648,19 +644,16 @@ |
649 | 645 | # makes will be autoreviewed... |
650 | 646 | $ofrev = FlaggedRevision::newFromTitle( $this->article->getTitle(), $revId ); |
651 | 647 | if( !is_null($ofrev) ) { |
652 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
653 | 648 | $msg = ( $revId==$frev->getRevId() ) ? 'revreview-auto-w' : 'revreview-auto-w-old'; |
654 | 649 | $warning = "<div id='mw-autoreviewtag' class='flaggedrevs_warning plainlinks'>" . |
655 | 650 | wfMsgExt($msg,array('parseinline')) . "</div>"; |
656 | 651 | } |
657 | 652 | # Let new users know about review procedure a tag |
658 | 653 | } elseif( !$wgUser->getId() && $this->article->showStableByDefault() ) { |
659 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
660 | 654 | $warning = "<div id='mw-editwarningtag' class='flaggedrevs_editnotice plainlinks'>" . |
661 | 655 | wfMsgExt('revreview-editnotice',array('parseinline')) . "</div>"; |
662 | 656 | } |
663 | 657 | if( $frev->getRevId() != $revId ) { |
664 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
665 | 658 | $time = $wgLang->date( $frev->getTimestamp(), true ); |
666 | 659 | $flags = $frev->getTags(); |
667 | 660 | if( FlaggedRevs::isQuality($flags) ) { |
— | — | @@ -716,7 +709,6 @@ |
717 | 710 | } |
718 | 711 | |
719 | 712 | # Conditions are met to show diff... |
720 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); // load required messages |
721 | 713 | $leftNote = $quality ? 'revreview-quality-title' : 'revreview-stable-title'; |
722 | 714 | $rClass = FlaggedRevsXML::getQualityColor( false ); |
723 | 715 | $lClass = FlaggedRevsXML::getQualityColor( (int)$quality ); |
— | — | @@ -759,7 +751,6 @@ |
760 | 752 | $this->load(); |
761 | 753 | # Only for pages manually made to be stable... |
762 | 754 | if( $this->article->isPageLocked() ) { |
763 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
764 | 755 | $wgOut->addHTML( "<div class='mw-warning-with-logexcerpt'>" ); |
765 | 756 | $wgOut->addWikiMsg( 'revreview-locked' ); |
766 | 757 | LogEventsList::showLogExtract( $wgOut, 'stable', |
— | — | @@ -767,7 +758,6 @@ |
768 | 759 | $wgOut->addHTML( "</div>" ); |
769 | 760 | # ...or unstable |
770 | 761 | } elseif( $this->article->isPageUnlocked() ) { |
771 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
772 | 762 | $wgOut->addHTML( "<div class='mw-warning-with-logexcerpt'>" ); |
773 | 763 | $wgOut->addWikiMsg( 'revreview-unlocked' ); |
774 | 764 | LogEventsList::showLogExtract( $wgOut, 'stable', |
— | — | @@ -786,11 +776,6 @@ |
787 | 777 | if( !$wgUser->isAllowed( 'review' ) ) { |
788 | 778 | return true; |
789 | 779 | } |
790 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
791 | | - # Load special page names |
792 | | - wfLoadExtensionMessages( 'OldReviewedPages' ); |
793 | | - wfLoadExtensionMessages( 'UnreviewedPages' ); |
794 | | - |
795 | 780 | $category = $this->article->getTitle()->getText(); |
796 | 781 | |
797 | 782 | $unreviewed = SpecialPage::getTitleFor( 'UnreviewedPages' ); |
— | — | @@ -850,8 +835,6 @@ |
851 | 836 | } |
852 | 837 | $action = $wgRequest->getVal( 'action', 'view' ); |
853 | 838 | if( $action == 'protect' || $action == 'unprotect' ) { |
854 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
855 | | - wfLoadExtensionMessages( 'Stabilization' ); // Load special page name |
856 | 839 | $title = SpecialPage::getTitleFor( 'Stabilization' ); |
857 | 840 | # Give a link to the page to configure the stable version |
858 | 841 | $frev = $this->article->getStableRev(); |
— | — | @@ -895,7 +878,6 @@ |
896 | 879 | $wgUser->isAllowed( 'stablesettings' ) && |
897 | 880 | $title->exists() |
898 | 881 | ) { |
899 | | - wfLoadExtensionMessages( 'Stabilization' ); |
900 | 882 | $stableTitle = SpecialPage::getTitleFor( 'Stabilization' ); |
901 | 883 | // Add a tab |
902 | 884 | $actions['default'] = array( |
— | — | @@ -929,7 +911,6 @@ |
930 | 912 | if( is_null( $srev ) ) { |
931 | 913 | return true; // No stable revision exists |
932 | 914 | } |
933 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
934 | 915 | $synced = FlaggedRevs::stableVersionIsSynced( $srev, $article ); |
935 | 916 | // Set draft tab as needed... |
936 | 917 | if ( !$skin->mTitle->isTalkPage() && !$synced ) { |
— | — | @@ -1010,7 +991,6 @@ |
1011 | 992 | global $wgUser; |
1012 | 993 | $this->load(); |
1013 | 994 | if( FlaggedRevs::allowComments() && $frev && $frev->getComment() ) { |
1014 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
1015 | 995 | $notes = "<br /><div class='flaggedrevs_notes plainlinks'>"; |
1016 | 996 | $notes .= wfMsgExt('revreview-note', array('parseinline'), User::whoIs( $frev->getUser() ) ); |
1017 | 997 | $notes .= '<br /><i>' . $wgUser->getSkin()->formatComment( $frev->getComment() ) . '</i></div>'; |
— | — | @@ -1029,8 +1009,6 @@ |
1030 | 1010 | # UI may be limited to unobtrusive patrolling system |
1031 | 1011 | if( $wgOut->isPrintable() || !$this->article->isReviewable() || $this->article->limitedUI() ) |
1032 | 1012 | return true; |
1033 | | - # Load required messages |
1034 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
1035 | 1013 | # Check if this might be the diff to stable. If so, enhance it. |
1036 | 1014 | if( $newRev->isCurrent() && $oldRev ) { |
1037 | 1015 | $article = new Article( $newRev->getTitle() ); |
— | — | @@ -1232,7 +1210,6 @@ |
1233 | 1211 | $article = new Article( $newRev->getTitle() ); |
1234 | 1212 | # Is the stable revision using the same revision as the current? |
1235 | 1213 | if( $article->getLatest() != $frev->getRevId() ) { |
1236 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
1237 | 1214 | $patrol = '(' . $wgUser->getSkin()->makeKnownLinkObj( $newRev->getTitle(), |
1238 | 1215 | wfMsgHtml( 'review-diff2stable' ), "oldid={$frev->getRevId()}&diff=cur&diffonly=0" ) . ')'; |
1239 | 1216 | $wgOut->addHTML( "<div class='fr-diff-to-stable' align='center'>$patrol</div>" ); |
— | — | @@ -1342,8 +1319,6 @@ |
1343 | 1320 | } else { |
1344 | 1321 | $rev = Revision::newFromTitle( $this->article->getTitle(), $id ); |
1345 | 1322 | } |
1346 | | - # Load required messages |
1347 | | - wfLoadExtensionMessages( 'FlaggedRevs' ); |
1348 | 1323 | # Must be a valid non-printable output and revision must be public |
1349 | 1324 | if( $wgOut->isPrintable() || !$rev || $rev->isDeleted(Revision::DELETED_TEXT) ) { |
1350 | 1325 | return false; |