From: Niklas Laxström Date: Tue, 20 Sep 2011 08:18:20 +0000 (+0000) Subject: Fixing a bug in r97495 that Aaron catched. I misinterpreted the documentation for... X-Git-Tag: 1.31.0-rc.0~27540 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/rappels.php?a=commitdiff_plain;h=5f2c2ab63639d2330a87384332396785901447e6;p=lhc%2Fweb%2Fwiklou.git Fixing a bug in r97495 that Aaron catched. I misinterpreted the documentation for what 'valid' means. --- diff --git a/includes/PatrolLog.php b/includes/PatrolLog.php index 755d165bca..04fdc4f2a6 100644 --- a/includes/PatrolLog.php +++ b/includes/PatrolLog.php @@ -30,7 +30,7 @@ class PatrolLog { $entry = new ManualLogEntry( 'patrol', 'patrol' ); $entry->setTarget( $title ); $entry->setParameters( self::buildParams( $rc, $auto ) ); - $entry->setPerformer( User::newFromName( $rc->getAttribute( 'rc_user_text' ) ) ); + $entry->setPerformer( User::newFromName( $rc->getAttribute( 'rc_user_text' ), false ) ); $logid = $entry->insert(); if ( !$auto ) { $entry->publish( $logid, 'udp' );