Committer: ailyin
LJSUP-13229 (refactor userlog code into LJ::User::Userlog / LJ::User::UserlogRecord)U trunk/cgi-bin/LJ/Console/Command/SetOwner.pm
Modified: trunk/cgi-bin/LJ/Console/Command/SetOwner.pm =================================================================== --- trunk/cgi-bin/LJ/Console/Command/SetOwner.pm 2012-08-09 08:07:06 UTC (rev 22606) +++ trunk/cgi-bin/LJ/Console/Command/SetOwner.pm 2012-08-09 08:36:50 UTC (rev 22607) @@ -49,7 +49,7 @@ } } - LJ::User::UserlogRecord::SetOwner->create( $journal, + LJ::User::UserlogRecord::SetOwner->create( $c, 'ownerid' => $u->userid, 'remote' => $remote ); ## Close election poll if exist and open @@ -69,7 +69,7 @@ ## Set a new supermaintainer as maintainer too. LJ::set_rel($c->{userid}, $u->{userid}, 'A'); - LJ::User::UserlogRecord::MaintainerAdd->create( $journal, + LJ::User::UserlogRecord::MaintainerAdd->create( $c, 'maintid' => $u->userid, 'remote' => $remote ); $self->print("User '$user' setted as supermaintainer for '$comm'". $reason);