From 6469e038d94cf3247ab658162259a38413202a13 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 11 Aug 2015 15:12:30 -0400 Subject: [PATCH] CRM-16806 - Additional cleanup --- CRM/Admin/Page/APIExplorer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Admin/Page/APIExplorer.php b/CRM/Admin/Page/APIExplorer.php index 31d0c04899..241f4e4c8a 100644 --- a/CRM/Admin/Page/APIExplorer.php +++ b/CRM/Admin/Page/APIExplorer.php @@ -107,8 +107,8 @@ class CRM_Admin_Page_APIExplorer extends CRM_Core_Page { public static function getDoc() { // Verify the API handler we're talking to is valid. $entities = civicrm_api3('Entity', 'get'); - if (!empty($_GET['entity']) && in_array($_GET['entity'], $entities['values']) && strpos($_GET['entity'], '.') === FALSE) { - $entity = _civicrm_api_get_camel_name($_GET['entity']); + $entity = CRM_Utils_Array::value('entity', $_GET); + if (!empty($entity) && in_array($entity, $entities['values']) && strpos($entity, '.') === FALSE) { $action = CRM_Utils_Array::value('action', $_GET); $doc = self::getDocblock($entity, $action); $result = array( -- 2.25.1