From: Tim Mallezie Date: Thu, 9 Apr 2015 16:08:39 +0000 (+0200) Subject: fix drush installation of civicrm 4.6 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=653c1eee25d2e835b8515ee49d0cc0c94b49a554;p=civicrm-core.git fix drush installation of civicrm 4.6 --- diff --git a/install/civicrm.php b/install/civicrm.php index 05724e8af0..b0220a8754 100644 --- a/install/civicrm.php +++ b/install/civicrm.php @@ -36,6 +36,13 @@ function civicrm_setup($filesDirectory) { global $crmPath, $sqlPath, $pkgPath, $tplPath; global $compileDir; + // This is needed to allow CiviCRM to be installed by drush. + $pkgPath = $crmPath . DIRECTORY_SEPARATOR . 'packages'; + set_include_path($crmPath . PATH_SEPARATOR . + $pkgPath . PATH_SEPARATOR . + get_include_path() + ); + $sqlPath = $crmPath . DIRECTORY_SEPARATOR . 'sql'; $tplPath = $crmPath . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR . 'CRM' . DIRECTORY_SEPARATOR . 'common' . DIRECTORY_SEPARATOR;