Opened 6 years ago

Closed 6 years ago

#704 closed defect (fixed)

get_forum_name returns wrong forum name if sub-forums listed on same page

Reported by: _ck_ Owned by:
Priority: normal Milestone: 0.8.3
Component: Back-end Version: 0.8.2.1
Severity: normal Keywords:
Cc:

Description

get_forum_name() will return the name of the last sub-forum shown on a page, instead of the current forum being displayed when used outside (below) the loop on a template (ie. forum.php)

To get the correct result I had to use get_forum_name($forum_id)but that should not be necessary in theory, after the loop the internal counter should be reset back to the current forum?

Change History (2)

comment:1   _ck_6 years ago

This also affects

<?php forum_pages(); ?>

Which calculates the wrong forum_id, if a forum has sub-forums.
I had to workaround by using

<?php forum_pages($forum_id); ?>

In the template.

  • Resolution set to fixed
  • Status changed from new to closed

It's already fixed in trunk (at http://trac.bbpress.org/browser/trunk/bb-includes/template-functions.php#L479 ). So I'ma close this, hopefully that's the right thing to do.

Note: See TracTickets for help on using tickets.