Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-17806

CIviCRM class API should check if constant is defined before defining it

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.11
    • Fix Version/s: 4.7
    • Component/s: None
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      This is kind of an odd use case but we are calling the class api in tests and it is hitting an issue where 'CIVICRM_SETTINGS_PATH' is already defined

      There is precedent elsewhere for putting that define in an IF so I'm going to add a patch to do that here too.

      if (!defined('CIVICRM_SETTINGS_PATH'))

      { define('CIVICRM_SETTINGS_PATH', $config['conf_path'] . '/civicrm.settings.php'); }

        Attachments

          Activity

            People

            • Assignee:
              eileen Eileen McNaughton
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: