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

Extentions can't send email with new notification system

    XMLWordPrintable

Details

    Description

      I have the feeling that notification sytem dont look into extension langage folders for find template email.

      Exemple, in UCP >> notification options, i enable email for my extention's notifications type.

      In my vendor\ext\notification\type\exemple class, i have:

      	public function get_email_template()
      	{
      		return 'directory_website_in_queue';
      	}
      

      the notification is send, but not the email, with this error:

      Unable to find template "directory_website_in_queue.txt" (looked into: ./language/en/email).

      and i have a vendor/ext/language/en/email/directory_website_in_queue.txt file

      template() method in functions_messenger.php had a third argument for specify a template path, but it is not used in phpbb\notification\method/messenger_base.php :/

      Attachments

        1. 01.PNG
          01.PNG
          6 kB
        2. 02.PNG
          02.PNG
          5 kB

        Activity

          People

            nickvergessen Joas Schilling
            ErnadoO Erwan Nader
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: