<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.4 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
public function authenticate($name, $pass, $loadCMSBootstrap = FALSE) {
require_once (str_replace('_', DIRECTORY_SEPARATOR, $this->ufClass) . '.php');
- if ($this->ufClass == 'CRM_Utils_System_Joomla' || $this->ufClass == 'CRM_Utils_System_WordPress'){
- $loadCMSBootstrap = TRUE;
+ if ($this->ufClass == 'CRM_Utils_System_Joomla'){
+ $loadCMSBootstrap = true;
}
-
- eval('$result =& ' . $this->ufClass . '::authenticate($name, $pass, $loadCMSBootstrap );');
+
+ $className = $this->ufClass;
+ $result =& $className::authenticate($name, $pass, $loadCMSBootstrap );
if (empty($result)) {
throw new SoapFault('Client', 'Invalid login');