Skip to content

Instantly share code, notes, and snippets.

Created August 19, 2009 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/170698 to your computer and use it in GitHub Desktop.
Save anonymous/170698 to your computer and use it in GitHub Desktop.
#-------------------------------------------------------------------
=head2 getNextThread ( )
Returns a thread object for the next (newer) thread in the same forum.
=cut
sub getNextThread {
my $self = shift;
unless (exists $self->{_next}) {
my $parent = $self->getParent;
my $sortBy = $parent->getSortBy;
my $sortOrder = $parent->getSortOrder;
$self->{_next} = $self->getAdjacentThread($sortBy, $sortOrder);
};
return $self->{_next};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment