From: Coleman Watts Date: Thu, 5 Feb 2015 22:32:31 +0000 (-0500) Subject: API explorer code parsing fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=41bd5fcb2e89d4a93829d2d72ec35a36ea0727e0;p=civicrm-core.git API explorer code parsing fix --- 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);