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:
6ee6581
)
ClassLoader - Fix autoloading of API_Exception
author
Tim Otten
<totten@civicrm.org>
Mon, 26 Oct 2020 22:21:06 +0000
(15:21 -0700)
committer
Tim Otten
<totten@civicrm.org>
Wed, 28 Oct 2020 21:10:19 +0000
(14:10 -0700)
CRM/Core/ClassLoader.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/ClassLoader.php
b/CRM/Core/ClassLoader.php
index 18e608aca10ff819f6f2c98c7f988d2fcf37476b..688470b9d9b70a2f2758acf75f6691b93aa5354e 100644
(file)
--- a/
CRM/Core/ClassLoader.php
+++ b/
CRM/Core/ClassLoader.php
@@
-198,7
+198,7
@@
class CRM_Core_ClassLoader {
* @param $class
*/
public function loadClass($class) {
- if ($class === 'CiviCRM_API3_Exception') {
+ if ($class === 'CiviCRM_API3_Exception'
|| $class === 'API_Exception'
) {
//call internal error class api/Exception first
// allow api/Exception class call external error class
// CiviCRM_API3_Exception