Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-9605

Wrong class added to topiclist, when there's no announcement topic.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0.8-RC1
    • 3.0.7-PL1
    • Styles
    • None
    • PHP 5.2.12, MySQL 5.1.43, Windows 7, Google Chrome

      If there are no announcement topics, the container for topiclist get the classes: "forumbg announcement".

      The code involved is line 126 in viewforum_body.html (Prosilver):

      <div class="forumbg<!-- IF topicrow.S_TOPIC_TYPE_SWITCH --> announcement<!-- ENDIF -->">

      If there's at least one announcement topic the code works, and only the container div for the list of announcement topic(s) get the class "announcement" appended, and the list of announcement topics is separated from the rest of the topics.

      If there are no announcement topcis the only container div for topiclist will still be appended with the class "announcements" in addition to the "forumbg" class.

      Hope I made it clear enough to understand.
      I talked to rxu on the irc channel about it as well, and was told to create a ticket here.

            nickvergessen Joas Schilling
            LadyAnna Anna Broman [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: