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

Template filter not aware of extension context

    XMLWordPrintable

Details

    Description

      The template filter isn't aware of what context it is in, which can cause some significant issues with filename conflicts.

      For example:
      Extension 1 has a file named styles/prosilver/template/header.html
      Extension 2 has a file with the same name.

      Extension 2 tries to include its header.html file, either on its own page or, for example, on template event overall_header_head_append.
      (<!-- INCLUDE header.html -->)

      The styles/prosilver/template/header.html from Extension 1 will be included since its name comes first (the include calls locator->get_first_file_location() to try and load the first location the file is found at).

      This affects everything that can be included in template files--other template files, js files, php files, and css files (once that is implemented).

      Attachments

        Issue Links

          Activity

            People

              EXreaction EXreaction [X] (Inactive)
              EXreaction EXreaction [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: