projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CRM-15524 - Support addSetting in snippet mode
[civicrm-core.git]
/
install
/
civicrm.php
diff --git
a/install/civicrm.php
b/install/civicrm.php
index dd189db3b1df2dcdc9cae4da640bcb600bf3e369..debefb2925b073d0778f5299f764d52e7019738e 100644
(file)
--- a/
install/civicrm.php
+++ b/
install/civicrm.php
@@
-36,6
+36,12
@@
function civicrm_setup($filesDirectory) {
global $crmPath, $sqlPath, $pkgPath, $tplPath;
global $compileDir;
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;
$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;
*/
function civicrm_source($dsn, $fileName, $lineMode = FALSE) {
global $crmPath;
+
require_once "$crmPath/packages/DB.php";
$db = DB::connect($dsn);
require_once "$crmPath/packages/DB.php";
$db = DB::connect($dsn);