mark $session->datetime->time as deprecated and remove its use from core code
This commit is contained in:
parent
5ecc986ec6
commit
60a4a9b140
56 changed files with 94 additions and 92 deletions
|
|
@ -544,9 +544,9 @@ sub friends {
|
|||
$myFriends->isEditable(0);
|
||||
$self->uncache;
|
||||
$self->{_user}{"friendsGroup"} = $myFriends->getId;
|
||||
$self->{_user}{"lastUpdated"} = $self->session->datetime->time();
|
||||
$self->{_user}{"lastUpdated"} = time();
|
||||
$self->session->db->write("update users set friendsGroup=?, lastUpdated=? where userId=?",
|
||||
[$myFriends->getId, $self->session->datetime->time(), $self->userId]);
|
||||
[$myFriends->getId, time(), $self->userId]);
|
||||
$self->{_friendsGroup} = $myFriends;
|
||||
}
|
||||
|
||||
|
|
@ -642,7 +642,7 @@ sub getGroups {
|
|||
my $withoutExpired = shift;
|
||||
my $clause = "";
|
||||
if ($withoutExpired) {
|
||||
$clause = "and expireDate>".$self->session->datetime->time();
|
||||
$clause = "and expireDate>".time();
|
||||
}
|
||||
my $gotGroupsForUser = $self->session->stow->get("gotGroupsForUser");
|
||||
if (exists $gotGroupsForUser->{$self->userId}) {
|
||||
|
|
@ -1016,7 +1016,7 @@ sub karma {
|
|||
$self->uncache;
|
||||
$self->{_user}{karma} += $amount;
|
||||
$self->session->db->write("update users set karma=karma+? where userId=?", [$amount, $self->userId]);
|
||||
$self->session->db->write("insert into karmaLog values (?,?,?,?,?)",[$self->userId, $amount, $source, $description, $self->session->datetime->time()]);
|
||||
$self->session->db->write("insert into karmaLog values (?,?,?,?,?)",[$self->userId, $amount, $source, $description, time()]);
|
||||
}
|
||||
return $self->{_user}{karma};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue