fix namespace calls
authorEileen McNaughton <eileen@fuzion.co.nz>
Wed, 7 Jan 2015 03:10:36 +0000 (16:10 +1300)
committerEileen McNaughton <eileen@fuzion.co.nz>
Wed, 7 Jan 2015 03:10:36 +0000 (16:10 +1300)
Civi/Payment/System.php

index 41b05e58530572efb02e3686ffddfb82c7c936dc..59e5eb1a94fe1e9f4871da75cdfddd17c5d06541 100644 (file)
@@ -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];