https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111969

Revision: 111969
Author:   hashar
Date:     2012-02-20 21:49:14 +0000 (Mon, 20 Feb 2012)
Log Message:
-----------
MFT to 1.19wmf1 r111965 r11967

bug #34495 ?\226?\128?\148 patrol log credit the user patrolled, not the user 
patrolling

Modified Paths:
--------------
    branches/wmf/1.19wmf1/includes/logging/PatrolLog.php

Modified: branches/wmf/1.19wmf1/includes/logging/PatrolLog.php
===================================================================
--- branches/wmf/1.19wmf1/includes/logging/PatrolLog.php        2012-02-20 
21:48:01 UTC (rev 111968)
+++ branches/wmf/1.19wmf1/includes/logging/PatrolLog.php        2012-02-20 
21:49:14 UTC (rev 111969)
@@ -27,10 +27,12 @@
 
                $title = Title::makeTitleSafe( $rc->getAttribute( 
'rc_namespace' ), $rc->getAttribute( 'rc_title' ) );
                if( $title ) {
+                       global $wgUser;
+
                        $entry = new ManualLogEntry( 'patrol', 'patrol' );
                        $entry->setTarget( $title );
                        $entry->setParameters( self::buildParams( $rc, $auto ) 
);
-                       $entry->setPerformer( User::newFromName( 
$rc->getAttribute( 'rc_user_text' ), false ) );
+                       $entry->setPerformer( $wgUser );
                        $logid = $entry->insert();
                        if ( !$auto ) {
                                $entry->publish( $logid, 'udp' );


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to