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

Attachment icon always displayed in list of reported message

XMLWordPrintable

      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 />
      

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

              Created:
              Updated:
              Resolved: