Index: trunk/phase3/includes/logging/PatrolLog.php |
— | — | @@ -27,10 +27,12 @@ |
28 | 28 | |
29 | 29 | $title = Title::makeTitleSafe( $rc->getAttribute( 'rc_namespace' ), $rc->getAttribute( 'rc_title' ) ); |
30 | 30 | if( $title ) { |
| 31 | + global $wgUser; |
| 32 | + |
31 | 33 | $entry = new ManualLogEntry( 'patrol', 'patrol' ); |
32 | 34 | $entry->setTarget( $title ); |
33 | 35 | $entry->setParameters( self::buildParams( $rc, $auto ) ); |
34 | | - $entry->setPerformer( User::newFromName( $rc->getAttribute( 'rc_user_text' ), false ) ); |
| 36 | + $entry->setPerformer( $wgUser, false ) ); |
35 | 37 | $logid = $entry->insert(); |
36 | 38 | if ( !$auto ) { |
37 | 39 | $entry->publish( $logid, 'udp' ); |