X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FCodeGen%2FConfig.php;h=8853913d98a40c8409a503663b6a1caa976cf015;hb=7914f0a4fd8b7950936db550ed109bc470f7c9ae;hp=c01834d3bbcdcdfd3329246be400f207734bc1ba;hpb=0d418e2d7831da1955266def3e3116f43287c2f8;p=civicrm-core.git diff --git a/CRM/Core/CodeGen/Config.php b/CRM/Core/CodeGen/Config.php index c01834d3bb..8853913d98 100644 --- a/CRM/Core/CodeGen/Config.php +++ b/CRM/Core/CodeGen/Config.php @@ -4,18 +4,19 @@ * Generate configuration files */ class CRM_Core_CodeGen_Config extends CRM_Core_CodeGen_BaseTask { + public function run() { $this->setupCms(); } public function setupCms() { - if (!in_array($this->config->cms, array( + if (!in_array($this->config->cms, [ 'backdrop', 'drupal', 'drupal8', 'joomla', 'wordpress', - ))) { + ])) { echo "Config file for '{$this->config->cms}' not known."; exit(); } @@ -38,7 +39,7 @@ class CRM_Core_CodeGen_Config extends CRM_Core_CodeGen_BaseTask { * path to config template */ public function findConfigTemplate($cms) { - $candidates = array(); + $candidates = []; switch ($cms) { case 'backdrop': // FIXME!!!! @@ -56,6 +57,7 @@ class CRM_Core_CodeGen_Config extends CRM_Core_CodeGen_BaseTask { case 'drupal8': $candidates[] = "../../modules/civicrm/civicrm.config.php.drupal"; $candidates[] = "../../../modules/civicrm/civicrm.config.php.drupal"; + $candidates[] = "../../../modules/civicrm-drupal/civicrm.config.php.drupal"; break; case 'wordpress':