more CS happiness

This commit is contained in:
JT Smith 2005-02-13 17:00:25 +00:00
parent 63fcf47836
commit 018223cd1a
3 changed files with 13 additions and 5 deletions

View file

@ -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"));

View file

@ -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++;
}