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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.2.0-a1
    • 3.2.0-dev
    • None
    • None

      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)

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

              Created:
              Updated:
              Resolved: