fix drush installation of civicrm 4.6
authorTim Mallezie <tim.mallezie@chiro.be>
Thu, 9 Apr 2015 16:08:39 +0000 (18:08 +0200)
committerTim Mallezie <tim.mallezie@chiro.be>
Thu, 9 Apr 2015 16:08:39 +0000 (18:08 +0200)
install/civicrm.php

index 05724e8af04003fb43d6e467831cd67be059c7a5..b0220a87547011611643b04d0729d932f9a36683 100644 (file)
@@ -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;