Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -1039,6 +1039,10 @@ |
1040 | 1040 | * Automatically review an edit and add a log entry in the review log. |
1041 | 1041 | * LinksUpdate was already called via edit operations, so the page |
1042 | 1042 | * 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. |
1043 | 1047 | */ |
1044 | 1048 | public static function autoReviewEdit( $article, $user, $text, $rev, $flags, $auto=true ) { |
1045 | 1049 | global $wgMemc; |
Index: trunk/extensions/FlaggedRevs/specialpages/RevisionReview_body.php |
— | — | @@ -368,7 +368,7 @@ |
369 | 369 | $difflink = '(' . $this->skin->makeKnownLinkObj( $this->page, wfMsgHtml('diff'), |
370 | 370 | '&diff=' . $rev->getId() . '&oldid=prev' ) . ')'; |
371 | 371 | $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>"; |
373 | 373 | } |
374 | 374 | |
375 | 375 | public function submit() { |
— | — | @@ -752,7 +752,7 @@ |
753 | 753 | */ |
754 | 754 | public static function userCan( $tag, $value ) { |
755 | 755 | global $wgFlagRestrictions, $wgUser; |
756 | | - |
| 756 | + # No restrictions -> full access |
757 | 757 | if( !isset($wgFlagRestrictions[$tag]) ) |
758 | 758 | return true; |
759 | 759 | # Validators always have full access |