Skip to:
Content

Opened 7 years ago

Closed 7 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:
Milestone: 0.8.3 Priority: normal
Severity: normal Version: 0.8.2.1
Component: Back-end 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_7 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.

comment:2 fel647 years ago

  • 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.