fix the next/previous thread thing. It saves an asset instanciation and lets macros using the session asset work correctly
This commit is contained in:
parent
cab4e0bccd
commit
11fd0b1ca7
2 changed files with 14 additions and 4 deletions
|
|
@ -1,4 +1,6 @@
|
||||||
7.3.18
|
7.3.18
|
||||||
|
- 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)
|
- fix: getLineage joinClass expects string, not array ref (perlDreamer Consulting, LLC)
|
||||||
http://www.plainblack.com/bugs/tracker/getlineage-joinclass-expects-string-not-array-ref#wzbxkyWPuzsCRBr3x9QImA
|
http://www.plainblack.com/bugs/tracker/getlineage-joinclass-expects-string-not-array-ref#wzbxkyWPuzsCRBr3x9QImA
|
||||||
- fix: "Rejected" messages in CS mail
|
- fix: "Rejected" messages in CS mail
|
||||||
|
|
|
||||||
|
|
@ -900,10 +900,10 @@ sub view {
|
||||||
$p->appendTemplateVars($var);
|
$p->appendTemplateVars($var);
|
||||||
$var->{'add.url'} = $self->getParent->getNewThreadUrl;
|
$var->{'add.url'} = $self->getParent->getNewThreadUrl;
|
||||||
|
|
||||||
my $next = $self->getNextThread;
|
my $next = $self->getNextThread;
|
||||||
my $previous = $self->getPreviousThread;
|
my $previous = $self->getPreviousThread;
|
||||||
$var->{"previous.url"} = $self->getUrl("func=previousThread") if (defined $previous);
|
$var->{"previous.url"} = $previous->getUrl if (defined $previous);
|
||||||
$var->{"next.url"} = $self->getUrl("func=nextThread") if (defined $next);
|
$var->{"next.url"} = $next->getUrl if (defined $next);
|
||||||
|
|
||||||
$var->{"search.url"} = $self->getParent->getSearchUrl;
|
$var->{"search.url"} = $self->getParent->getSearchUrl;
|
||||||
$var->{"collaboration.url"} = $self->getThread->getParent->getUrl;
|
$var->{"collaboration.url"} = $self->getThread->getParent->getUrl;
|
||||||
|
|
@ -951,6 +951,10 @@ sub www_lockThread {
|
||||||
|
|
||||||
Displays the next logical thread after this one.
|
Displays the next logical thread after this one.
|
||||||
|
|
||||||
|
NOTE:
|
||||||
|
|
||||||
|
This method is deprecated. It messes with macros via $session->asset.
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
sub www_nextThread {
|
sub www_nextThread {
|
||||||
|
|
@ -969,6 +973,10 @@ sub www_nextThread {
|
||||||
|
|
||||||
Displays the previous logical thread before this one.
|
Displays the previous logical thread before this one.
|
||||||
|
|
||||||
|
NOTE:
|
||||||
|
|
||||||
|
This method is deprecated. It messes with macros via $session->asset.
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
sub www_previousThread {
|
sub www_previousThread {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue