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

bin/phpbbcli.php ignores PHPBB_ENVIRONMENT constant from config.php

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.0-dev
    • Fix Version/s: 3.2.0-a1
    • Component/s: None
    • Labels:
      None

      Description

      phpbbcli.php define the environment before loading the config.php file, so it is ignored.

      if (!defined('PHPBB_ENVIRONMENT'))
      {
      	@define('PHPBB_ENVIRONMENT', 'production');
      }
      

      this block of code needs to be moved after the call to extract($phpbb_config_php_file->get_all()); (like it is done in common.php)

        Attachments

          Activity

            People

            • Assignee:
              bantu Andreas Fischer
              Reporter:
              nicofuma nicofuma
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: