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

$template->display hook does not pass $template instance

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.8
    • Fix Version/s: 3.0.9-RC1
    • Component/s: Other
    • Labels:
      None

      Description

      The $template->display hook does not provide access to the $template instance that is being used. This leads to issues when sending emails, because the emails do not use the global $template but still utilise the template system.

      An easy solution to this problem is to pass $this (the template instance) into the hook as an argument.

        Activity

        Show
        Oleg Oleg [X] (Inactive) added a comment - Fix: https://github.com/phpbb/phpbb3/commit/053cf790a93e9cfb521f484901d79c72783f868f

          People

          • Assignee:
            igorw Igor Wiedler [X] (Inactive)
            Reporter:
            igorw Igor Wiedler [X] (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development