removed: Fix: Thread template: next.url and previous.url tmpl_vars are always defined

This commit is contained in:
JT Smith 2007-05-22 15:50:44 +00:00
parent 52c722dcfd
commit 3b578658d2
2 changed files with 4 additions and 4 deletions

View file

@ -6,6 +6,8 @@
http://www.plainblack.com/bugs/tracker/if-no-sysnopsis-exists-the-asset-inherits-the-parents#VVesdkBSTm3neKRaKCJxKw
- fix: diskUsage.pl (perlDreamer Consulting, LLC)
http://www.plainblack.com/bugs/tracker/diskusage.pl#tlMpeq3vzsd37pRHcz_NYg
- fix: Had to remove Fix: Thread template: next.url and previous.url
tmpl_vars are always defined because it was causing a performance problem.
- fix: thread next/prev url (perlDreamer Consulting, LLC)
http://www.plainblack.com/bugs/tracker/thread-next/prev-url/
- fix: getLineage joinClass expects string, not array ref (perlDreamer Consulting, LLC)

View file

@ -900,10 +900,8 @@ sub view {
$p->appendTemplateVars($var);
$var->{'add.url'} = $self->getParent->getNewThreadUrl;
my $next = $self->getNextThread;
my $previous = $self->getPreviousThread;
$var->{"previous.url"} = $previous->getUrl if (defined $previous);
$var->{"next.url"} = $next->getUrl if (defined $next);
$var->{"previous.url"} = $self->getUrl("func=previousThread");
$var->{"next.url"} = $self->getUrl("func=nextThread");
$var->{"search.url"} = $self->getParent->getSearchUrl;
$var->{"collaboration.url"} = $self->getThread->getParent->getUrl;