Committer: ailyin
LJSUP-7462 (refactor userprops): cleanupU trunk/bin/renameuser.pl U trunk/htdocs/community/manage.bml
Modified: trunk/bin/renameuser.pl =================================================================== --- trunk/bin/renameuser.pl 2010-11-30 04:32:20 UTC (rev 17822) +++ trunk/bin/renameuser.pl 2010-11-30 04:58:08 UTC (rev 17823) @@ -104,10 +104,7 @@ LJ::load_user_props($tou, 'renamedto'); if ($tou->{renamedto}) { print "Removing redirection for user: $to\n"; - unless (LJ::set_userprop($tou, 'renamedto' => undef)) { - print "Error setting 'renamedto' userprop for $to\n"; - exit 1; - } + $tou->clear_prop('renamedto'); } } Modified: trunk/htdocs/community/manage.bml =================================================================== --- trunk/htdocs/community/manage.bml 2010-11-30 04:32:20 UTC (rev 17822) +++ trunk/htdocs/community/manage.bml 2010-11-30 04:58:08 UTC (rev 17823) @@ -156,7 +156,6 @@ my $mod_emails = $POST{modemail} ? 1 : 0; $remote->set_prop( 'opt_nomodemail' => $mod_emails ? undef : 1 ); - LJ::set_userprop($remote, 'opt_nomodemail', $mod_emails ? undef : 1); } my $mod_emails = $remote->prop("opt_nomodemail") ? 0 : 1;