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

Turn TEMPLATE_BITFIELD into an instance variable in acp_styles.php

    XMLWordPrintable

Details

    • Improvement
    • Status: Unverified Fix (View Workflow)
    • Minor
    • Resolution: Fixed
    • 3.0.8
    • 3.1.0-a1
    • ACP
    • None

    Description

      acp_styles.php has this code:

      		define('TEMPLATE_BITFIELD', $bitfield->get_base64());
      

      This prevents more than one style to be refreshed in a single script invocation if the most obvious approach to doing so is taken (which is multiple instantiations of acp_styles class).

      I do not see any reason why this should be a global define, therefore the proposal is to make it an instance variable instead.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: