r47526 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47525‎ | r47526 | r47527 >
Date:00:23, 20 February 2009
Author:aaron
Status:ok
Tags:
Comment:
* Remove whitespace
* Add comments
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.class.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/specialpages/RevisionReview_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php
@@ -1039,6 +1039,10 @@
10401040 * Automatically review an edit and add a log entry in the review log.
10411041 * LinksUpdate was already called via edit operations, so the page
10421042 * fields will be up to date. This updates the stable version.
 1043+ *
 1044+ * $auto is here for revisions checked off to be reviewed. Auto-review
 1045+ * triggers on edit, but we don't want it to count as just automatic.
 1046+ * This also makes it so the user's name shows up in the page history.
10431047 */
10441048 public static function autoReviewEdit( $article, $user, $text, $rev, $flags, $auto=true ) {
10451049 global $wgMemc;
Index: trunk/extensions/FlaggedRevs/specialpages/RevisionReview_body.php
@@ -368,7 +368,7 @@
369369 $difflink = '(' . $this->skin->makeKnownLinkObj( $this->page, wfMsgHtml('diff'),
370370 '&diff=' . $rev->getId() . '&oldid=prev' ) . ')';
371371 $revlink = $this->skin->makeLinkObj( $this->page, $date, 'oldid=' . $rev->getId() );
372 - return "<li> $difflink $revlink " . $this->skin->revUserLink($rev) . " " . $this->skin->revComment($rev) . "</li>";
 372+ return "<li>$difflink $revlink " . $this->skin->revUserLink($rev) . " " . $this->skin->revComment($rev) . "</li>";
373373 }
374374
375375 public function submit() {
@@ -752,7 +752,7 @@
753753 */
754754 public static function userCan( $tag, $value ) {
755755 global $wgFlagRestrictions, $wgUser;
756 -
 756+ # No restrictions -> full access
757757 if( !isset($wgFlagRestrictions[$tag]) )
758758 return true;
759759 # Validators always have full access

Status & tagging log