X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FAdmin%2FPage%2FAPIExplorer.php;h=a7b25539008ef3c810f16e0b238afd4fc8475f33;hb=89952fb62b7a7a90a4427ff0f657358c8f405ebe;hp=c769535be31717c3635ce8370a3e366faba915a8;hpb=952e2a50682ed31cb50211da70d74ffcd9c301c2;p=civicrm-core.git diff --git a/CRM/Admin/Page/APIExplorer.php b/CRM/Admin/Page/APIExplorer.php index c769535be3..a7b2553900 100644 --- a/CRM/Admin/Page/APIExplorer.php +++ b/CRM/Admin/Page/APIExplorer.php @@ -63,7 +63,7 @@ class CRM_Admin_Page_APIExplorer extends CRM_Core_Page { $paths = self::uniquePaths(); foreach ($paths as $path) { $dir = \CRM_Utils_File::addTrailingSlash($path) . 'api' . DIRECTORY_SEPARATOR . 'v3' . DIRECTORY_SEPARATOR . 'examples'; - if (is_dir($dir)) { + if (\CRM_Utils_File::isDir($dir)) { foreach (scandir($dir) as $item) { if ($item && strpos($item, '.') === FALSE && array_search($item, $examples) === FALSE) { $examples[] = $item; @@ -96,7 +96,7 @@ class CRM_Admin_Page_APIExplorer extends CRM_Core_Page { $paths = self::uniquePaths(); foreach ($paths as $path) { $dir = \CRM_Utils_File::addTrailingSlash($path) . 'api' . DIRECTORY_SEPARATOR . 'v3' . DIRECTORY_SEPARATOR . 'examples' . DIRECTORY_SEPARATOR . $_GET['entity']; - if (is_dir($dir)) { + if (\CRM_Utils_File::isDir($dir)) { foreach (scandir($dir) as $item) { $item = str_replace('.ex.php', '', $item); if ($item && strpos($item, '.') === FALSE) {