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

Custom lang path not used when sending e-mails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 3.0.5
    • 3.0.x
    • Other
    • None
    • PHP Environment:
      Database:

      Changing the language directory's path doesn't change the directory where e-mail templates are loaded from.

      Open includes/functions_messenger.php.
      Find (line 150):

      		global $config, $phpbb_root_path;


      Replace with:

      		global $config, $user;


      Find (line 164):

      			$tpl_file = "{$phpbb_root_path}language/$template_lang/email/$template_file.txt";


      Replace with:

      			$tpl_file = "{$user->lang_path}$template_lang/email/$template_file.txt";

            Acyd Burn Meik Sievertsen [X] (Inactive)
            fberci Bertalan Fodor [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: