Mailing List Archive

SVN: [61239] trunk/extensions/FlaggedRevs
http://www.mediawiki.org/wiki/Special:Code/MediaWiki/61239

Revision: 61239
Author: aaron
Date: 2010-01-19 04:21:13 +0000 (Tue, 19 Jan 2010)

Log Message:
-----------
Added missing review actions

Modified Paths:
--------------
trunk/extensions/FlaggedRevs/FlaggedRevs.class.php
trunk/extensions/FlaggedRevs/FlaggedRevs.php
trunk/extensions/FlaggedRevs/FlaggedRevsLogs.php

Modified: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php
===================================================================
--- trunk/extensions/FlaggedRevs/FlaggedRevs.class.php 2010-01-19 04:03:23 UTC (rev 61238)
+++ trunk/extensions/FlaggedRevs/FlaggedRevs.class.php 2010-01-19 04:21:13 UTC (rev 61239)
@@ -1510,7 +1510,7 @@
if ( !is_array( $flags ) ) {
if ( $oldSv ) { // use the last stable version if $flags not given
if( $user->isAllowed( 'bot' ) ) {
- $flags = $oldSv->getTags(); // no change for bots
+ $flags = $oldSv->getTags(); // no change for bot edits
} else {
$flags = self::getAutoReviewTags( $oldSv->getQuality() /* available */ );
}

Modified: trunk/extensions/FlaggedRevs/FlaggedRevs.php
===================================================================
--- trunk/extensions/FlaggedRevs/FlaggedRevs.php 2010-01-19 04:03:23 UTC (rev 61238)
+++ trunk/extensions/FlaggedRevs/FlaggedRevs.php 2010-01-19 04:21:13 UTC (rev 61239)
@@ -559,7 +559,9 @@
$wgLogActions['review/approve-i'] = 'review-logentry-app'; // sighted (first time)
$wgLogActions['review/approve2-i'] = 'review-logentry-app'; // quality (first time)
$wgLogActions['review/approve-a'] = 'review-logentry-app'; // sighted (auto)
+$wgLogActions['review/approve2-a'] = 'review-logentry-app'; // quality (auto)
$wgLogActions['review/approve-ia'] = 'review-logentry-app'; // sighted (initial & auto)
+$wgLogActions['review/approve2-ia'] = 'review-logentry-app'; // quality (initial & auto)
$wgLogActions['review/unapprove'] = 'review-logentry-dis'; // was sighted
$wgLogActions['review/unapprove2'] = 'review-logentry-dis'; // was quality


Modified: trunk/extensions/FlaggedRevs/FlaggedRevsLogs.php
===================================================================
--- trunk/extensions/FlaggedRevs/FlaggedRevsLogs.php 2010-01-19 04:03:23 UTC (rev 61238)
+++ trunk/extensions/FlaggedRevs/FlaggedRevsLogs.php 2010-01-19 04:21:13 UTC (rev 61239)
@@ -6,9 +6,7 @@
* $action is a valid review log action
*/
public static function isReviewAction( $action ) {
- return in_array( $action,
- array( 'approve', 'approve2', 'approve-a', 'approve2-a', 'unapprove', 'unapprove2' )
- );
+ return preg_match( '/^(approve2?(-i|-a|-ia)?|unapprove2?)$/', $action );
}

/**



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs