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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • 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.

        Attachments

          Activity

            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: