From 41bd5fcb2e89d4a93829d2d72ec35a36ea0727e0 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 5 Feb 2015 17:32:31 -0500 Subject: [PATCH] API explorer code parsing fix --- CRM/Admin/Page/APIExplorer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Admin/Page/APIExplorer.php b/CRM/Admin/Page/APIExplorer.php index be46d3eda0..11e7cb2f35 100644 --- a/CRM/Admin/Page/APIExplorer.php +++ b/CRM/Admin/Page/APIExplorer.php @@ -157,7 +157,7 @@ class CRM_Admin_Page_APIExplorer extends CRM_Core_Page { $contents = $actionFileContents; } // If action isn't in this file, try generic - if (strpos($contents, $fnName) === FALSE) { + if (strpos($contents, "function $fnName") === FALSE) { $fnName = "civicrm_api3_generic_$action"; $file = "api/v3/Generic/" . ucfirst($action) . '.php'; $contents = file_get_contents($file, FILE_USE_INCLUDE_PATH); -- 2.25.1