r34848 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r34847‎ | r34848 | r34849 >
Date:07:24, 15 May 2008
Author:aaron
Status:old
Tags:
Comment:
* Fix typo that would reintroduce slave lag issues
* Remove extra check
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -708,7 +708,7 @@
709709 * Useful for quickly pinging to see if a revision is flagged
710710 */
711711 public static function revIsFlagged( $title, $rev_id, $flags=0 ) {
712 - $quality = self::getRevQuality( $title, $rev_id, $flags=0 );
 712+ $quality = self::getRevQuality( $title, $rev_id, $flags );
713713 return ($quality !== false);
714714 }
715715
@@ -1874,7 +1874,7 @@
18751875 */
18761876 public static function revSubmitted( $title, $rev ) {
18771877 global $wgRequest, $wgUser;
1878 - if( !$wgRequest->wasPosted() || !$wgRequest->getVal('wpSave') || $wgRequest->getVal('title') !== $title->getPrefixedDBkey() ) {
 1878+ if( !$wgRequest->wasPosted() || $wgRequest->getVal('title') !== $title->getPrefixedDBkey() ) {
18791879 return false;
18801880 }
18811881 # Must be by this user

Status & tagging log