Remove use of the deprecated viewProfile url param to get a user's profile.

This commit is contained in:
Colin Kuskie 2009-07-09 01:23:23 +00:00
parent 5172c32946
commit f428970c39
2 changed files with 7 additions and 4 deletions

View file

@ -13,6 +13,7 @@
- fixed #10603: ThingyRecord Thank You/Confirmation Screen Confusing
- fixed #10615: i18n Asset_StoryArchive - deleteIcon
- fixed: Exceptions from WebGUI::Exception::Shop
- fixed #10616: karma list will break eventually
7.7.13
- fixed #10574: Creating Calendar Entry

View file

@ -708,12 +708,14 @@ Returns a hash reference of template variables for this Post.
=cut
sub getTemplateVars {
my $self = shift;
my %var = %{$self->get};
my $self = shift;
my $session = $self->session;
my %var = %{$self->get};
my $postUser = WebGUI::User->new($session, $self->get("ownerUserId"));
$var{"userId"} = $self->get("ownerUserId");
$var{"user.isPoster"} = $self->isPoster;
$var{"avatar.url"} = $self->getAvatarUrl;
$var{"userProfile.url"} = $self->getUrl("op=viewProfile;uid=".$self->get("ownerUserId"));
$var{"avatar.url"} = $self->getAvatarUrl;
$var{"userProfile.url"} = $postUser->getProfileUrl($self->getUrl());
$var{"dateSubmitted.human"} =$self->session->datetime->epochToHuman($self->get("creationDate"));
$var{"dateUpdated.human"} =$self->session->datetime->epochToHuman($self->get("revisionDate"));
$var{'title.short'} = $self->chopTitle;