Skip to:

Opened 10 years ago

Closed 10 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:
Component: Back-end Keywords:


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)

#1 @_ck_
10 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.

#2 @fel64
10 years ago

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

It's already fixed in trunk (at ). So I'ma close this, hopefully that's the right thing to do.

Note: See TracTickets for help on using tickets.