$configIDSiniDir = NULL;
global $cmsPath;
+ $siteDir = getSiteDir($cmsPath, $_SERVER['SCRIPT_FILENAME']);
if ($installType == 'drupal') {
- $siteDir = getSiteDir($cmsPath, $_SERVER['SCRIPT_FILENAME']);
// make sure that we can write to sites/default and files/
$writableDirectories = array(
return TRUE;
}
else {
- $testDetails[2] .= " (the following PHP variables are missing: " . implode(", ", $missing) . ")";
+ $testDetails[2] = " (the following PHP variables are missing: " . implode(", ", $missing) . ")";
$this->error($testDetails);
}
}
// now enable civicrm module.
module_enable(array('civicrm', 'civicrmtheme'));
- // clear block and page cache, to make sure civicrm link is present in navigation block
- cache_clear_all();
+ // clear block, page, theme, and hook caches
+ drupal_flush_all_caches();
//add basic drupal permissions
civicrm_install_set_drupal_perms();
// now enable civicrm module.
module_enable(array('civicrm'));
- // clear block and page cache, to make sure civicrm link is present in navigation block
- cache_clear_all();
+ // clear block, page, theme, and hook caches
+ drupal_flush_all_caches();
//add basic drupal permissions
db_query('UPDATE {permission} SET perm = CONCAT( perm, \', access CiviMail subscribe/unsubscribe pages, access all custom data, access uploaded files, make online contributions, profile create, profile edit, profile view, register for events, view event info\') WHERE rid IN (1, 2)');