From: Coleman Watts Date: Tue, 11 Aug 2015 19:12:30 +0000 (-0400) Subject: CRM-16806 - Additional cleanup X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6469e038d94cf3247ab658162259a38413202a13;p=civicrm-core.git CRM-16806 - Additional cleanup --- 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(