more CS happiness
This commit is contained in:
parent
63fcf47836
commit
018223cd1a
3 changed files with 13 additions and 5 deletions
|
|
@ -334,7 +334,7 @@ sub getTemplateVars {
|
|||
my $self = shift;
|
||||
my %var = (%{$self->get});
|
||||
$var{"userId"} = $self->get("ownerUserId");
|
||||
$var{"user.isPoster"} = ($self->get("ownerUserId") eq $session{user}{userId});
|
||||
$var{"user.isPoster"} = $self->isPoster;
|
||||
|
||||
$var{"dateSubmitted.human"} = epochToHuman($self->get("dateSubmitted"));
|
||||
$var{"dateUpdated.human"} = epochToHuman($self->get("dateUpdated"));
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ sub appendPostListTemplateVars {
|
|||
"isThird"=>(($i+1)%3==0),
|
||||
"isFourth"=>(($i+1)%4==0),
|
||||
"isFifth"=>(($i+1)%5==0),
|
||||
"currentUserIsPoster"=>$post->isPoster
|
||||
"user.isPoster"=>$post->isPoster
|
||||
});
|
||||
$i++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue