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:
026e337
)
INFRA-125, CRM-15011 - Fix autoloading for api_v3_*Test and WebTest_*Test
author
Tim Otten
<totten@civicrm.org>
Thu, 14 Aug 2014 23:33:12 +0000
(16:33 -0700)
committer
Tim Otten
<totten@civicrm.org>
Thu, 14 Aug 2014 23:33:12 +0000
(16:33 -0700)
CRM/Core/ClassLoader.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/ClassLoader.php
b/CRM/Core/ClassLoader.php
index 21402e46d986138863ec8180045f72a321cdee3f..46ed87ae1e5aa02cb52c54b141cdb2507d1249df 100644
(file)
--- a/
CRM/Core/ClassLoader.php
+++ b/
CRM/Core/ClassLoader.php
@@
-152,7
+152,8
@@
class CRM_Core_ClassLoader {
function loadClass($class) {
if (
// Only load classes that clearly belong to CiviCRM.
- 0 === strncmp($class, 'CRM_', 4) &&
+ // Note: api/v3 does not use classes, but api_v3's test-suite does
+ (0 === strncmp($class, 'CRM_', 4) || 0 === strncmp($class, 'api_v3_', 7) || 0 === strncmp($class, 'WebTest_', 8)) &&
// Do not load PHP 5.3 namespaced classes.
// (in a future version, maybe)
FALSE === strpos($class, '\\')