[ticket/12501] Parse the reported post message before its attachments.

This ensures that the empty lines from attachment.html aren't converted into
<br />.

PHPBB3-12501
[ticket/12501] Only select attachments uploaded before the post was reported.

The post text displayed to the user is the same as when it was reported, even if
the post was edited afterwards, thus it follows that the attachments would be
the same. This also addresses an issue where the index in the attachment bbcode
no longer matches that of its corresponding attachment when new attachments
are uploaded after the post is reported.

PHPBB3-12501
[ticket/12517] Correctly call $log->add in prune shadow topics

PHPBB3-12517
Merge pull request #2412 from prototech/ticket/12501

[ticket/12501] Fix improper display of inline attachments in post report page

* prototech/ticket/12501:
  [ticket/12501] Only select attachments uploaded before the post was reported.
  [ticket/12501] Parse the reported post message before its attachments.
[ticket/12526] Fix undefined index: filesize when editing PM with attachments.

PHPBB3-12526
[ticket/12529] Use root_path in controller\resolver to check the template dir

PHPBB3-12529
[ticket/12529] Move $phpbb_root_path to the end of the constructor

PHPBB3-12529
Merge pull request #2441 from Nicofuma/ticket/12529

[ticket/12529] Use root_path in controller\resolver to check the template dir

* Nicofuma/ticket/12529:
  [ticket/12529] Move $phpbb_root_path to the end of the constructor
  [ticket/12529] Use root_path in controller\resolver to check the template dir
Merge pull request #2439 from prototech/ticket/12526

[ticket/12526] Fix undefined index: filesize when editing PM with attachments.

* prototech/ticket/12526:
  [ticket/12526] Fix undefined index: filesize when editing PM with attachments.
Merge pull request #2438 from marc1706/ticket/12517

[ticket/12517] Correctly call $log->add in prune shadow topics

* marc1706/ticket/12517:
  [ticket/12517] Correctly call $log->add in prune shadow topics
[ticket/12451] Fix whitespace in posting.php lang file

PHPBB3-12451
Merge pull request #2442 from Elsensee/ticket/12451-2

[ticket/12451] Fix whitespace in posting.php lang file

* Elsensee/ticket/12451-2:
  [ticket/12451] Fix whitespace in posting.php lang file