From: Eileen McNaughton Date: Wed, 7 Jan 2015 03:10:36 +0000 (+1300) Subject: fix namespace calls X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1337f9e23232c92f61ec6720d54dbe7e5342eb62;p=civicrm-core.git fix namespace calls --- diff --git a/Civi/Payment/System.php b/Civi/Payment/System.php index 41b05e5853..59e5eb1a94 100644 --- a/Civi/Payment/System.php +++ b/Civi/Payment/System.php @@ -38,8 +38,8 @@ class System { if (!isset(self::$cache[$id])) { if (!isset(self::$cache[$id])) { //does this config need to be called? - $config = CRM_Core_Config::singleton(); - $ext = CRM_Extension_System::singleton()->getMapper(); + $config = \CRM_Core_Config::singleton(); + $ext = \CRM_Extension_System::singleton()->getMapper(); if ($ext->isExtensionKey($processor['class_name'])) { $paymentClass = $ext->keyToClass($processor['class_name'], 'payment'); require_once $ext->classToPath($paymentClass); @@ -52,7 +52,7 @@ class System { require_once str_replace('_', DIRECTORY_SEPARATOR, $paymentClass) . '.php'; } - self::$cachen[$id] = new $paymentClass($processor['is_test'] ? 'test' : 'live', $processor); + self::$cache[$id] = new $paymentClass($processor['is_test'] ? 'test' : 'live', $processor); } } return self::$cache[$id];