r77633 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77632‎ | r77633 | r77634 >
Date:01:50, 3 December 2010
Author:aaron
Status:ok
Tags:
Comment:
* Comment tweaks/fixes
* Renamed $frev -> $srev in setPendingNotice
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedArticleView.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -211,7 +211,7 @@
212212 # Show reviews in recentchanges? Disabled by default, often spammy...
213213 $wgFlaggedRevsLogInRC = false;
214214 # Show automatic promotions to Editor in RC? Disabled by default, often spammy...
215 -$wgFlaggedRevsAutopromoteInRC = false;
 215+$wgFlaggedRevsAutopromoteInRC = false; // @TODO: remove when ready
216216
217217 # How far the logs for overseeing quality revisions and depreciations go
218218 $wgFlaggedRevsOversightAge = 30 * 24 * 3600;
@@ -226,9 +226,9 @@
227227 # FR_INCLUDES_FREEZE
228228 # Use the version of templates/files that the page used when reviewed
229229 # FR_INCLUDES_STABLE
230 -# Use the stable version of templates/files that themselves have a stable version
231 -# and the template/file version used at the time of review for those that don't have one
232 -# NOTE: We may have templates that do not have stable version. Given situational
 230+# For each template/file, check if a version of it was used when the page was reviewed
 231+# and if the template/file itself has a stable version; use the newest those versions
 232+# NOTE: We may have templates that do not have stable version. Also, given situational
233233 # inclusion of templates (e.g. parser functions selecting template X or Y based on date),
234234 # there may also be no "review time version" revision ID for a template used on a page.
235235 # In such cases, we select the current (unreviewed) revision. Likewise for files.
Index: trunk/extensions/FlaggedRevs/FlaggedArticleView.php
@@ -1255,13 +1255,13 @@
12561256
12571257 /**
12581258 * Adds a notice saying that this revision is pending review
1259 - * @param FlaggedRevision $frev
 1259+ * @param FlaggedRevision $srev The stable version
12601260 * @return void
12611261 */
1262 - public function setPendingNotice( FlaggedRevision $frev ) {
 1262+ public function setPendingNotice( FlaggedRevision $srev ) {
12631263 global $wgLang;
12641264 $this->load();
1265 - $time = $wgLang->date( $frev->getTimestamp(), true );
 1265+ $time = $wgLang->date( $srev->getTimestamp(), true );
12661266 $pendingNotice = wfMsgExt( 'revreview-pendingnotice', 'parseinline', $time );
12671267 $this->reviewNotice .= "<div id='mw-fr-reviewnotice' class='flaggedrevs_preview plainlinks'>" .
12681268 $pendingNotice . "</div>";

Status & tagging log