Bug #592
Forum subrscription displaying always the wrong image
| Status: | Closed | Start date: | 12/16/2009 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | Ryan Gordon | % Done: | 100% |
|
| Category: | User Control Panel | |||
| Target version: | 1.4.12 | |||
| Reproducibility: | Always | Database Type: | ||
| Reported In MyBB Version: | 1.4.10 | Database Version: | ||
| PHP Version: | SQA assignments: | |||
| Browser: |
Description
When you are watching the usercp.php?action=forumsubscriptions , the image shown on the side of the forum isn't the correct one.
In fact if on the index there is the "There are new posts" image, here it will be shown the image when there are non new posts and vice versa.
if(($forum['lastpost'] > $mybb->user['lastvisit'] || $readforums[$forum['fid']] > $mybb->user['lastvisit']) && $forum['lastpost'] != 0)
{
$folder = "on";
}
else
{
$folder = "off";
}
This should use the get_forum_lightbulb() function instead of this if statement.
Associated revisions
Fixes Forum subrscription displaying always the wrong image (fixes:592)
Fixes Forum subrscription displaying always the wrong image (fixes:592)
History
Updated by Ryan Gordon about 2 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset r4680.
Updated by Ryan Gordon about 2 years ago
- Assignee set to Ryan Gordon
- Target version set to 1.4.12
Updated by Michael Schlechtinger about 2 years ago
- Status changed from Resolved to Feedback
This fix is not working. Now it it wants to load the file images/Array.gif which obviously does not exist.
Updated by Ryan Gordon about 2 years ago
- Status changed from Feedback to Resolved
Applied in changeset r4737.
Updated by Stefan T. almost 2 years ago
- Status changed from Resolved to Closed