Index: trunk/extensions/FlaggedRevs/FlaggedRevsPage_body.php |
— | — | @@ -845,7 +845,7 @@ |
846 | 846 | } |
847 | 847 | |
848 | 848 | function execute( $par ) { |
849 | | - global $wgRequest, $wgUser, $wgOut; |
| 849 | + global $wgRequest, $wgUser, $wgOut, $wgFlaggedRevs; |
850 | 850 | |
851 | 851 | $confirm = $wgRequest->wasPosted() && |
852 | 852 | $wgUser->matchEditToken( $wgRequest->getVal( 'wpEditToken' ) ); |
— | — | @@ -886,9 +886,13 @@ |
887 | 887 | } |
888 | 888 | # And it must actually be there... |
889 | 889 | if( !$this->page->exists() ) { |
890 | | - $wgOut->addHTML( wfMsgExt( 'stabilization-dne', array('parseinline'), |
| 890 | + $wgOut->addHTML( wfMsgExt( 'stabilization-notexists', array('parseinline'), |
891 | 891 | $this->page->getPrefixedText() ) ); |
892 | 892 | return; |
| 893 | + } else if ( !$wgFlaggedRevs->isReviewable( $this->page ) ) { |
| 894 | + $wgOut->addHTML( wfMsgExt( 'stabilization-notcontent', array('parseinline'), |
| 895 | + $this->page->getPrefixedText() ) ); |
| 896 | + return; |
893 | 897 | } |
894 | 898 | |
895 | 899 | if( $confirm ) { |
Index: trunk/extensions/FlaggedRevs/FlaggedRevsPage.i18n.php |
— | — | @@ -27,25 +27,25 @@ |
28 | 28 | ($2 [{{fullurl:{{FULLPAGENAMEE}}|oldid=$1&diff=cur&editreview=1}} {{plural:$2|change|changes}}])', |
29 | 29 | 'revreview-quick-see-basic' => '\'\'\'Current\'\'\'. [[{{fullurl:{{FULLPAGENAMEE}}|stable=1}} see stable revision]] |
30 | 30 | ($2 [{{fullurl:{{FULLPAGENAMEE}}|oldid=$1&diff=cur&editreview=1}} {{plural:$2|change|changes}}])', |
31 | | - 'revreview-quick-basic' => '\'\'\'[[Help:Article validation|Sighted]]\'\'\'. [[{{fullurl:{{FULLPAGENAMEE}}|stable=0}} see current revision]] |
| 31 | + 'revreview-quick-basic' => '\'\'\'[[Help:Article validation|Sighted]]\'\'\'. [[{{fullurl:{{FULLPAGENAMEE}}|stable=0}} see current revision]] |
32 | 32 | ($2 [{{fullurl:{{FULLPAGENAMEE}}|oldid=$1&diff=cur&editreview=1}} {{plural:$2|change|changes}}])', |
33 | 33 | 'revreview-quick-quality' => '\'\'\'[[Help:Article validation|Quality]]\'\'\'. [[{{fullurl:{{FULLPAGENAMEE}}|stable=0}} see current revision]] |
34 | 34 | ($2 [{{fullurl:{{FULLPAGENAMEE}}|oldid=$1&diff=cur&editreview=1}} {{plural:$2|change|changes}}])', |
35 | | - 'revreview-newest-basic' => 'The [{{fullurl:{{FULLPAGENAMEE}}|stable=1}} latest sighted revision] |
| 35 | + 'revreview-newest-basic' => 'The [{{fullurl:{{FULLPAGENAMEE}}|stable=1}} latest sighted revision] |
36 | 36 | ([{{fullurl:Special:Stableversions|page={{FULLPAGENAMEE}}}} list all]) was [{{fullurl:Special:Log|type=review&page={{FULLPAGENAMEE}}}} approved] |
37 | 37 | on <i>$2</i>. [{{fullurl:{{FULLPAGENAMEE}}|oldid=$1&diff=cur&editreview=1}} $3 {{plural:$3|change|changes}}] {{plural:$3|needs|need}} review.', |
38 | | - 'revreview-newest-quality' => 'The [{{fullurl:{{FULLPAGENAMEE}}|stable=1}} latest quality revision] |
| 38 | + 'revreview-newest-quality' => 'The [{{fullurl:{{FULLPAGENAMEE}}|stable=1}} latest quality revision] |
39 | 39 | ([{{fullurl:Special:Stableversions|page={{FULLPAGENAMEE}}}} list all]) was [{{fullurl:Special:Log|type=review&page={{FULLPAGENAMEE}}}} approved] |
40 | 40 | on <i>$2</i>. [{{fullurl:{{FULLPAGENAMEE}}|oldid=$1&diff=cur&editreview=1}} $3 {{plural:$3|change|changes}}] {{plural:$3|needs|need}} review.', |
41 | | - 'revreview-basic' => 'This is the latest [[Help:Article validation|sighted]] revision, |
| 41 | + 'revreview-basic' => 'This is the latest [[Help:Article validation|sighted]] revision, |
42 | 42 | [{{fullurl:Special:Log|type=review&page={{FULLPAGENAMEE}}}} approved] on <i>$2</i>. The [{{fullurl:{{FULLPAGENAMEE}}|stable=0}} current revision] |
43 | 43 | can be [{{fullurl:{{FULLPAGENAMEE}}|action=edit}} modified]; [{{fullurl:{{FULLPAGENAMEE}}|oldid=$1&diff=cur&editreview=1}} $3 {{plural:$3|change|changes}}] |
44 | 44 | {{plural:$3|awaits|await}} review.', |
45 | | - 'revreview-quality' => 'This is the latest [[Help:Article validation|quality]] revision, |
| 45 | + 'revreview-quality' => 'This is the latest [[Help:Article validation|quality]] revision, |
46 | 46 | [{{fullurl:Special:Log|type=review&page={{FULLPAGENAMEE}}}} approved] on <i>$2</i>. The [{{fullurl:{{FULLPAGENAMEE}}|stable=0}} current revision] |
47 | 47 | can be [{{fullurl:{{FULLPAGENAMEE}}|action=edit}} modified]; [{{fullurl:{{FULLPAGENAMEE}}|oldid=$1&diff=cur&editreview=1}} $3 {{plural:$3|change|changes}}] |
48 | 48 | {{plural:$3|awaits|await}} review.', |
49 | | - 'revreview-static' => 'This is a [[Help:Article validation|reviewed]] revision of \'\'\'[[:$3|$3]]\'\'\', |
| 49 | + 'revreview-static' => 'This is a [[Help:Article validation|reviewed]] revision of \'\'\'[[:$3|$3]]\'\'\', |
50 | 50 | [{{fullurl:Special:Log/review|page=$1}} approved] on <i>$2</i>. The [{{fullurl:$3|stable=0}} current revision] |
51 | 51 | can be [{{fullurl:$3|action=edit}} modified].', |
52 | 52 | 'revreview-toggle' => '(+/-)', |
— | — | @@ -127,21 +127,22 @@ |
128 | 128 | 'revreview-visibility' => 'This page has a [[Help:Article validation|stable version]], which can be |
129 | 129 | [{{fullurl:Special:Stabilization|page={{FULLPAGENAMEE}}}} configured].', |
130 | 130 | |
131 | | - 'stabilization' => 'Page stabilization', |
132 | | - 'stabilization-text' => 'Change the settings below to adjust how the stable version of [[:$1|$1]] is selected and displayed.', |
133 | | - 'stabilization-perm' => 'Your account does not have permission to change the stable version configuration. |
| 131 | + 'stabilization' => 'Page stabilization', |
| 132 | + 'stabilization-text' => 'Change the settings below to adjust how the stable version of [[:$1|$1]] is selected and displayed.', |
| 133 | + 'stabilization-perm' => 'Your account does not have permission to change the stable version configuration. |
134 | 134 | Here are the current settings for [[:$1|$1]]:', |
135 | | - 'stabilization-page' => 'Page name:', |
136 | | - 'stabilization-leg' => 'Configure the stable version for a page', |
137 | | - 'stabilization-select' => 'How the stable version is selected', |
138 | | - 'stabilization-select1' => 'The latest quality revision; if not present, then the latest reviewed one', |
139 | | - 'stabilization-select2' => 'The latest reviewed revision', |
140 | | - 'stabilization-def' => 'Revision displayed on default page view', |
141 | | - 'stabilization-def1' => 'The stable revision; if not present, then the current one', |
142 | | - 'stabilization-def2' => 'The current revision', |
143 | | - 'stabilization-submit' => 'Confirm', |
144 | | - 'stabilization-dne' => 'There is no page called "[[:$1|$1]]". No configuration possible.', |
145 | | - 'stabilization-success' => 'Stable version configuration for [[:$1|$1]] successfuly set.', |
| 135 | + 'stabilization-page' => 'Page name:', |
| 136 | + 'stabilization-leg' => 'Configure the stable version for a page', |
| 137 | + 'stabilization-select' => 'How the stable version is selected', |
| 138 | + 'stabilization-select1' => 'The latest quality revision; if not present, then the latest reviewed one', |
| 139 | + 'stabilization-select2' => 'The latest reviewed revision', |
| 140 | + 'stabilization-def' => 'Revision displayed on default page view', |
| 141 | + 'stabilization-def1' => 'The stable revision; if not present, then the current one', |
| 142 | + 'stabilization-def2' => 'The current revision', |
| 143 | + 'stabilization-submit' => 'Confirm', |
| 144 | + 'stabilization-notexists' => 'There is no page called "[[:$1|$1]]". No configuration is possible.', |
| 145 | + 'stabilization-notcontent' => 'The page "[[:$1|$1]]" cannot be reviewed. No configuration is possible', |
| 146 | + 'stabilization-success' => 'Stable version configuration for [[:$1|$1]] successfuly set.', |
146 | 147 | |
147 | 148 | 'stabilization-sel-short' => 'Precedence', |
148 | 149 | 'stabilization-sel-short-0' => 'Quality', |
— | — | @@ -546,7 +547,7 @@ |
547 | 548 | 'stabilization-def1' => 'Die stabile Version; wenn keine vorhanden ist, dann die akutelle Version', |
548 | 549 | 'stabilization-def2' => 'Die aktuellste Version', |
549 | 550 | 'stabilization-submit' => 'Bestätigen', |
550 | | - 'stabilization-dne' => 'Es gibt keine Seite „[[:$1|$1]]“. Keine Einstellungen möglich.', |
| 551 | + 'stabilization-notexists' => 'Es gibt keine Seite „[[:$1|$1]]“. Keine Einstellungen möglich.', |
551 | 552 | 'stabilization-success' => 'Einstellungen für die stabile Version von „[[:$1|$1]]“ erfolgreich gespeichert.', |
552 | 553 | |
553 | 554 | 'stabilization-sel-short' => 'Priorität', |
— | — | @@ -671,7 +672,7 @@ |
672 | 673 | 'stabilization-def1' => 'Stabilna wersija', |
673 | 674 | 'stabilization-def2' => 'Aktualna wersija', |
674 | 675 | 'stabilization-submit' => 'Potwjerdźić', |
675 | | - 'stabilization-dne' => 'Njeje strona „[[:$1|$1]]“. Žana konfiguracija móžno.', |
| 676 | + 'stabilization-notexists' => 'Njeje strona „[[:$1|$1]]“. Žana konfiguracija móžno.', |
676 | 677 | 'stabilization-success' => 'Nastajenja za stabilnu wersiju wot "[[:$1|$1]]" wuspěšnje stajene.', |
677 | 678 | 'stabilization-sel-short' => 'Priorita', |
678 | 679 | 'stabilization-sel-short-0' => 'Kwalita', |
— | — | @@ -811,7 +812,7 @@ |
812 | 813 | 'stabilization-def1' => 'De stabiele versie', |
813 | 814 | 'stabilization-def2' => 'De huidige versie', |
814 | 815 | 'stabilization-submit' => 'Bevestigen', |
815 | | - 'stabilization-dne' => 'Er bestaat geen pagina genaamd "[[:$1|$1]]". Er is geen aanpassing mogelijk.', |
| 816 | + 'stabilization-notexists' => 'Er bestaat geen pagina genaamd "[[:$1|$1]]". Er is geen aanpassing mogelijk.', |
816 | 817 | 'stabilization-success' => 'Aanpassing van de stabiele versie voor [[:$1|$1]] is succesvol uitgevoerd.', |
817 | 818 | 'stabilization-sel-short' => 'Voorrang', |
818 | 819 | 'stabilization-sel-short-0' => 'Kwaliteit', |