rfe #12016 for the top story as well

This commit is contained in:
Paul Driver 2011-01-11 10:01:41 -06:00
parent 006c27f582
commit 2208864504
4 changed files with 9 additions and 0 deletions

View file

@ -236,6 +236,7 @@ sub viewTemplateVariables {
my $topStoryVars = shift @{ $var->{story_loop} };
##Note, this could have saved from the loop above, but this looks more clean and encapsulated to me.
my $topStory = WebGUI::Asset->new($session, $topStoryData->{assetId}, $topStoryData->{className}, $topStoryData->{revisionDate});
$var->{topStory} = $topStoryVars;
$var->{topStoryTitle} = $topStory->getTitle;
$var->{topStorySubtitle} = $topStory->get('subtitle');
$var->{topStoryUrl} = $session->url->append($self->getUrl, 'func=viewStory;assetId='.$topStoryData->{assetId}),