Skip to content

Instantly share code, notes, and snippets.

@roberttdev
Created January 13, 2015 15:33
Show Gist options
  • Save roberttdev/ac9fe6ac88c26a62fb28 to your computer and use it in GitHub Desktop.
Save roberttdev/ac9fe6ac88c26a62fb28 to your computer and use it in GitHub Desktop.
htdocs/sites/all/modules/civicrm/civicrm.config.php:define('CIVICRM_SETTINGS_PATH', $settingsFile);
htdocs/sites/all/modules/civicrm/drupal/drush/civicrm.drush.inc: define('CIVICRM_SETTINGS_PATH', $civicrmSettingsFile);
htdocs/sites/all/modules/civicrm/drupal/civicrm.config.php.drupal:define('CIVICRM_SETTINGS_PATH', $settingsFile);
htdocs/sites/all/modules/civicrm/drupal/civicrm.module: define('CIVICRM_SETTINGS_PATH', $settingsFile);
htdocs/sites/all/modules/civicrm/CRM/Upgrade/Incremental/php/FourTwo.php: if (!defined('CIVICRM_SETTINGS_PATH')) {
htdocs/sites/all/modules/civicrm/CRM/Upgrade/Incremental/php/FourTwo.php: } elseif (preg_match(self::SETTINGS_SNIPPET_PATTERN, file_get_contents(CIVICRM_SETTINGS_PATH))) {
htdocs/sites/all/modules/civicrm/CRM/Upgrade/Incremental/php/FourTwo.php: } elseif (!is_writable(CIVICRM_SETTINGS_PATH)) {
htdocs/sites/all/modules/civicrm/CRM/Upgrade/Incremental/php/FourTwo.php: 1 => CIVICRM_SETTINGS_PATH,
htdocs/sites/all/modules/civicrm/CRM/Upgrade/Incremental/php/FourTwo.php: if (defined('CIVICRM_SETTINGS_PATH')) {
htdocs/sites/all/modules/civicrm/CRM/Upgrade/Incremental/php/FourTwo.php: if (!preg_match(self::SETTINGS_SNIPPET_PATTERN, file_get_contents(CIVICRM_SETTINGS_PATH))) {
htdocs/sites/all/modules/civicrm/CRM/Upgrade/Incremental/php/FourTwo.php: if (is_writable(CIVICRM_SETTINGS_PATH)) {
htdocs/sites/all/modules/civicrm/CRM/Upgrade/Incremental/php/FourTwo.php: file_put_contents(CIVICRM_SETTINGS_PATH, self::SETTINGS_SNIPPET, FILE_APPEND);
htdocs/sites/all/modules/civicrm/api/class.api.php: define('CIVICRM_SETTINGS_PATH', $config['conf_path'] . '/civicrm.settings.php');
htdocs/sites/all/modules/civicrm/api/class.api.php: require_once CIVICRM_SETTINGS_PATH;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment