r26255 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26254‎ | r26255 | r26256 >
Date:17:54, 30 September 2007
Author:aaron
Status:old
Tags:
Comment:
*Ignore unreviewable pages
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevsPage.i18n.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/FlaggedRevsPage_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevsPage_body.php
@@ -845,7 +845,7 @@
846846 }
847847
848848 function execute( $par ) {
849 - global $wgRequest, $wgUser, $wgOut;
 849+ global $wgRequest, $wgUser, $wgOut, $wgFlaggedRevs;
850850
851851 $confirm = $wgRequest->wasPosted() &&
852852 $wgUser->matchEditToken( $wgRequest->getVal( 'wpEditToken' ) );
@@ -886,9 +886,13 @@
887887 }
888888 # And it must actually be there...
889889 if( !$this->page->exists() ) {
890 - $wgOut->addHTML( wfMsgExt( 'stabilization-dne', array('parseinline'),
 890+ $wgOut->addHTML( wfMsgExt( 'stabilization-notexists', array('parseinline'),
891891 $this->page->getPrefixedText() ) );
892892 return;
 893+ } else if ( !$wgFlaggedRevs->isReviewable( $this->page ) ) {
 894+ $wgOut->addHTML( wfMsgExt( 'stabilization-notcontent', array('parseinline'),
 895+ $this->page->getPrefixedText() ) );
 896+ return;
893897 }
894898
895899 if( $confirm ) {
Index: trunk/extensions/FlaggedRevs/FlaggedRevsPage.i18n.php
@@ -27,25 +27,25 @@
2828 ($2 [{{fullurl:{{FULLPAGENAMEE}}|oldid=$1&diff=cur&editreview=1}} {{plural:$2|change|changes}}])',
2929 'revreview-quick-see-basic' => '\'\'\'Current\'\'\'. [[{{fullurl:{{FULLPAGENAMEE}}|stable=1}} see stable revision]]
3030 ($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]]
3232 ($2 [{{fullurl:{{FULLPAGENAMEE}}|oldid=$1&diff=cur&editreview=1}} {{plural:$2|change|changes}}])',
3333 'revreview-quick-quality' => '\'\'\'[[Help:Article validation|Quality]]\'\'\'. [[{{fullurl:{{FULLPAGENAMEE}}|stable=0}} see current revision]]
3434 ($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]
3636 ([{{fullurl:Special:Stableversions|page={{FULLPAGENAMEE}}}} list all]) was [{{fullurl:Special:Log|type=review&page={{FULLPAGENAMEE}}}} approved]
3737 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]
3939 ([{{fullurl:Special:Stableversions|page={{FULLPAGENAMEE}}}} list all]) was [{{fullurl:Special:Log|type=review&page={{FULLPAGENAMEE}}}} approved]
4040 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,
4242 [{{fullurl:Special:Log|type=review&page={{FULLPAGENAMEE}}}} approved] on <i>$2</i>. The [{{fullurl:{{FULLPAGENAMEE}}|stable=0}} current revision]
4343 can be [{{fullurl:{{FULLPAGENAMEE}}|action=edit}} modified]; [{{fullurl:{{FULLPAGENAMEE}}|oldid=$1&diff=cur&editreview=1}} $3 {{plural:$3|change|changes}}]
4444 {{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,
4646 [{{fullurl:Special:Log|type=review&page={{FULLPAGENAMEE}}}} approved] on <i>$2</i>. The [{{fullurl:{{FULLPAGENAMEE}}|stable=0}} current revision]
4747 can be [{{fullurl:{{FULLPAGENAMEE}}|action=edit}} modified]; [{{fullurl:{{FULLPAGENAMEE}}|oldid=$1&diff=cur&editreview=1}} $3 {{plural:$3|change|changes}}]
4848 {{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]]\'\'\',
5050 [{{fullurl:Special:Log/review|page=$1}} approved] on <i>$2</i>. The [{{fullurl:$3|stable=0}} current revision]
5151 can be [{{fullurl:$3|action=edit}} modified].',
5252 'revreview-toggle' => '(+/-)',
@@ -127,21 +127,22 @@
128128 'revreview-visibility' => 'This page has a [[Help:Article validation|stable version]], which can be
129129 [{{fullurl:Special:Stabilization|page={{FULLPAGENAMEE}}}} configured].',
130130
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.
134134 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.',
146147
147148 'stabilization-sel-short' => 'Precedence',
148149 'stabilization-sel-short-0' => 'Quality',
@@ -546,7 +547,7 @@
547548 'stabilization-def1' => 'Die stabile Version; wenn keine vorhanden ist, dann die akutelle Version',
548549 'stabilization-def2' => 'Die aktuellste Version',
549550 '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.',
551552 'stabilization-success' => 'Einstellungen für die stabile Version von „[[:$1|$1]]“ erfolgreich gespeichert.',
552553
553554 'stabilization-sel-short' => 'Priorität',
@@ -671,7 +672,7 @@
672673 'stabilization-def1' => 'Stabilna wersija',
673674 'stabilization-def2' => 'Aktualna wersija',
674675 '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.',
676677 'stabilization-success' => 'Nastajenja za stabilnu wersiju wot "[[:$1|$1]]" wuspěšnje stajene.',
677678 'stabilization-sel-short' => 'Priorita',
678679 'stabilization-sel-short-0' => 'Kwalita',
@@ -811,7 +812,7 @@
812813 'stabilization-def1' => 'De stabiele versie',
813814 'stabilization-def2' => 'De huidige versie',
814815 '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.',
816817 'stabilization-success' => 'Aanpassing van de stabiele versie voor [[:$1|$1]] is succesvol uitgevoerd.',
817818 'stabilization-sel-short' => 'Voorrang',
818819 'stabilization-sel-short-0' => 'Kwaliteit',

Status & tagging log