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

Resource locator does not find admin template files from extensions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 3.1.0-a1
    • 3.1.0-dev
    • Extensions
    • None
    • php 5.3.3, MySQL 5.1.66, Chrome 25

      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.

            nickvergessen Joas Schilling
            Blitze Blitze [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: