From 468176f6533ede401097af5d75132b40bb8b0ba7 Mon Sep 17 00:00:00 2001 From: Francis Whittle Date: Mon, 9 Oct 2017 10:17:52 +1100 Subject: [PATCH] CRM-21277: Suppress warnings while finding install directory. Prevents log spam when e.g. open_basedir restrictions are in effect. ---------------------------------------- * CRM-21277: CRM_Utils_System_WordPress::validInstallDir spams log with warnings when open_basedir restriction is in effect https://issues.civicrm.org/jira/browse/CRM-21277 --- CRM/Utils/System/WordPress.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/System/WordPress.php b/CRM/Utils/System/WordPress.php index b3ce465567..bcc6da8d68 100644 --- a/CRM/Utils/System/WordPress.php +++ b/CRM/Utils/System/WordPress.php @@ -464,7 +464,7 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base { */ public function validInstallDir($dir) { $includePath = "$dir/wp-includes"; - if (file_exists("$includePath/version.php")) { + if (@file_exists("$includePath/version.php")) { return TRUE; } return FALSE; -- 2.25.1