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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.2.0-dev
    • 3.2.0-a1
    • None
    • 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

            bantu Andreas Fischer [X] (Inactive)
            nicofuma nicofuma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: