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:
19b6cf4
)
Fix isMultilingual to use static caching and respect current domain
author
Coleman Watts
<coleman@civicrm.org>
Thu, 18 Jun 2020 00:35:13 +0000
(20:35 -0400)
committer
Coleman Watts
<coleman@civicrm.org>
Thu, 18 Jun 2020 02:09:15 +0000
(22:09 -0400)
CRM/Core/I18n.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/I18n.php
b/CRM/Core/I18n.php
index b41f89c3372f95cba1d313b1abaa190e46062546..ce8175324c3644b27a49da45ffffc5cc102222b9 100644
(file)
--- a/
CRM/Core/I18n.php
+++ b/
CRM/Core/I18n.php
@@
-584,15
+584,14
@@
class CRM_Core_I18n {
}
/**
- * Is the
CiviCRM
in multilingual mode.
+ * Is the
current CiviCRM domain
in multilingual mode.
*
* @return Bool
* True if CiviCRM is in multilingual mode.
*/
public static function isMultilingual() {
- $domain = new CRM_Core_DAO_Domain();
- $domain->find(TRUE);
- return (bool) $domain->locales;
+ $domainId = CRM_Core_Config::domainID();
+ return (bool) CRM_Core_DAO::getFieldValue('CRM_Core_DAO_Domain', $domainId, 'locales');
}
/**