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

Resource locator does not find admin template files from extensions

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.1.0-dev
    • Fix Version/s: 3.1.0-a1
    • Component/s: Extensions
    • Labels:
      None
    • Environment:
      php 5.3.3, MySQL 5.1.66, Chrome 25

      Description

      After commit 4dcc8cabae670e0ee57a489e7e13c2f93d99753a, the resource locator does not recognize admin template files from extensions. For example, if my extension has a acp module (test_module.php) that uses template file acp_test.html located in root/ext/my/extension/adm/style/acp_test.html, visiting this page in acp results in an error (resource not found in...)

      Globalizing the admin path doesn't seem to work well with locating admin template files from extensions. Adding $phpbb_admin_path = (defined('PHPBB_ADMIN_PATH')) ? PHPBB_ADMIN_PATH : './'; back in adm/index.php seems to fix this.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nickvergessen Joas Schilling
                Reporter:
                Blitze Blitze
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: