CRM-18808, CRM-19154 - CRM_Utils_SoapServer - Fix call to authenticate()
authorTim Otten <totten@civicrm.org>
Tue, 23 Aug 2016 03:24:14 +0000 (20:24 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 23 Aug 2016 21:06:51 +0000 (14:06 -0700)
This function call bombs (on Drupal) because the method is not really
static. Need this to work so we can have a test...

CRM/Utils/SoapServer.php

index 2357d34dcbd48b9516fcfc7ff32b50c27fe162ac..5d92a210919c907132241a5869f3feb098b1195a 100644 (file)
@@ -122,8 +122,7 @@ class CRM_Utils_SoapServer {
       $loadCMSBootstrap = TRUE;
     }
 
-    $className = $this->ufClass;
-    $result =& $className::authenticate($name, $pass, $loadCMSBootstrap);
+    $result = CRM_Utils_System::authenticate($name, $pass, $loadCMSBootstrap);
 
     if (empty($result)) {
       throw new SoapFault('Client', 'Invalid login');