X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=install%2Findex.php;h=d70c360066be47a7fe3ae8a574d6c6df6304e30e;hb=32cb2feb8a91a1aec2098ffa22adc698945dec97;hp=8272ac4bd1c88e3b399d4e146ef68a1ef7f522dc;hpb=8d33e12be1cfc6226cada7978de1306924fb6040;p=civicrm-core.git diff --git a/install/index.php b/install/index.php index 8272ac4bd1..d70c360066 100644 --- a/install/index.php +++ b/install/index.php @@ -425,8 +425,8 @@ class InstallRequirements { $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( @@ -964,7 +964,7 @@ class InstallRequirements { 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); } } @@ -1121,8 +1121,8 @@ class Installer extends InstallRequirements { // 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(); @@ -1183,8 +1183,8 @@ class Installer extends InstallRequirements { // 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)');