Commit 4046d167 authored by gitsync's avatar gitsync

CRM-13584 reverted change

----------------------------------------
* CRM-13584: Localising the CiviCRM installation
  https://issues.civicrm.org/jira/browse/CRM-13584
parent 790c6e2d
......@@ -36,6 +36,12 @@ function civicrm_setup($filesDirectory) {
global $crmPath, $sqlPath, $pkgPath, $tplPath;
global $compileDir;
$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;
......@@ -129,6 +135,7 @@ function civicrm_main(&$config) {
*/
function civicrm_source($dsn, $fileName, $lineMode = FALSE) {
global $crmPath;
require_once "$crmPath/packages/DB.php";
$db = DB::connect($dsn);
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment