From 653c1eee25d2e835b8515ee49d0cc0c94b49a554 Mon Sep 17 00:00:00 2001 From: Tim Mallezie Date: Thu, 9 Apr 2015 18:08:39 +0200 Subject: [PATCH] fix drush installation of civicrm 4.6 --- install/civicrm.php | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- 2.25.1