);
$params['baseURL'] = isset($config['base_url']) ? $config['base_url'] : civicrm_cms_base();
- if ($installType == 'drupal') {
+ if ($installType == 'drupal' && defined('VERSION')) {
if (version_compare(VERSION, '7.0-rc1') >= 0) {
$params['cms'] = 'Drupal';
$params['CMSdbUser'] = addslashes($config['drupal']['username']);
$params['CMSdbName'] = addslashes($config['drupal']['database']);
}
}
+ else if ($installType == 'drupal') {
+ $params['cms'] = $config['cms'];
+ $params['CMSdbUser'] = addslashes($config['cmsdb']['username']);
+ $params['CMSdbPass'] = addslashes($config['cmsdb']['password']);
+ $params['CMSdbHost'] = $config['cmsdb']['server'];
+ $params['CMSdbName'] = addslashes($config['cmsdb']['database']);
+ }
else {
$params['cms'] = 'WordPress';
$params['CMSdbUser'] = addslashes(DB_USER);