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

includejs should not put phpbb root path in generated template code

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.1.0-a1
    • 3.1.0-dev
    • None
    • None

      In template filter:

      return ' global $phpbb_root_path; $_template->_js_include($phpbb_root_path . \'' . addslashes($filename) . '\', false); ';

      Template already knows the root path (it is even an instance variable in it), therefore there is no need to put it in the generated template code.

            Arty Vjacheslav Trushkin [X] (Inactive)
            Oleg Oleg [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: