Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-16403

Attachment icon always displayed in list of reported message

    XMLWordPrintable

    Details

      Description

      Although the ATTACH_ICON_IMG template condition is defined in includes\mcp (mcp_reports.php and mcp_pm_reports.php), it isn't used in the mcp_reports.html prosilver template file.

       

      Therefore, the attachment icon is always displayed beside the post title, regardless the presence of attached file or not in the reported messae.

       

      These two lines in mcp_reports.html...

      <a href="{postrow.U_VIEW_DETAILS}" class="topictitle">{postrow.PM_SUBJECT}</a> <i class="icon fa-paperclip fa-fw" aria-hidden="true"></i> <br />
      

      <a href="{postrow.U_VIEW_DETAILS}" class="topictitle">{postrow.POST_SUBJECT}</a><i class="icon fa-paperclip fa-fw" aria-hidden="true"></i> <br />
      

      ... should be replaced by these fixed lines

      <a href="{postrow.U_VIEW_DETAILS}" class="topictitle">{postrow.PM_SUBJECT}</a><!-- IF postrow.ATTACH_ICON_IMG --> <i class="icon fa-paperclip fa-fw" aria-hidden="true"></i> <!-- ENDIF --><br />
      

      <a href="{postrow.U_VIEW_DETAILS}" class="topictitle">{postrow.POST_SUBJECT}</a><!-- IF postrow.ATTACH_ICON_IMG --> <i class="icon fa-paperclip fa-fw" aria-hidden="true"></i> <!-- ENDIF --><br />
      

        Attachments

          Activity

            People

            Assignee:
            Marc Marc
            Reporter:
            Big Monstro Big Monstro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: