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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0.9-RC1
    • 3.0.8
    • Other
    • None

      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.

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

              Created:
              Updated:
              Resolved: