From 76d184ee2c0d4f0355085955ed55f2f077103b12 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 25 Oct 2018 11:04:48 +1100 Subject: [PATCH] Fix Namespace issue in Api3DocTrait when calling smarty --- Civi/Test/Api3DocTrait.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Civi/Test/Api3DocTrait.php b/Civi/Test/Api3DocTrait.php index 5f4c7ce8bb..17b0ece5d9 100644 --- a/Civi/Test/Api3DocTrait.php +++ b/Civi/Test/Api3DocTrait.php @@ -77,7 +77,7 @@ trait Api3DocTrait { if (empty($exampleName)) { // Attempt to convert lowercase action name to CamelCase. // This is clunky/imperfect due to the convention of all lowercase actions. - $exampleName = CRM_Utils_String::convertStringToCamel($action); + $exampleName = \CRM_Utils_String::convertStringToCamel($action); $knownPrefixes = array( 'Get', 'Set', @@ -103,7 +103,7 @@ trait Api3DocTrait { $desc[] = trim($line); } } - $smarty = CRM_Core_Smarty::singleton(); + $smarty = \CRM_Core_Smarty::singleton(); $smarty->assign('testFunction', $testFunction); $smarty->assign('function', _civicrm_api_get_entity_name_from_camel($entity) . "_$action"); foreach ($params as $index => $param) { -- 2.25.1