projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b48f417
)
CRM-20541 force connection to be populated when overcome by caching
author
eileen
<emcnaughton@wikimedia.org>
Tue, 9 May 2017 05:45:43 +0000
(17:45 +1200)
committer
eileen
<emcnaughton@wikimedia.org>
Tue, 9 May 2017 05:46:00 +0000
(17:46 +1200)
CRM/Core/DAO.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/DAO.php
b/CRM/Core/DAO.php
index 95081072bf53042ee73085a47b75c7db583c3eb4..b53fbe4ed6e5581f0e425e8b6f7f7d4c9d94d0d2 100644
(file)
--- a/
CRM/Core/DAO.php
+++ b/
CRM/Core/DAO.php
@@
-346,6
+346,11
@@
class CRM_Core_DAO extends DB_DataObject {
// rewrite queries that should use $dbLocale-based views for multi-language installs
global $dbLocale, $_DB_DATAOBJECT;
+ if (empty($_DB_DATAOBJECT['CONNECTIONS'][$this->_database_dsn_md5])) {
+ // Will force connection to be populated per CRM-20541.
+ new CRM_Core_DAO();
+ }
+
$conn = &$_DB_DATAOBJECT['CONNECTIONS'][$this->_database_dsn_md5];
$orig_options = $conn->options;
$this->_setDBOptions($this->_options);