From 8efdc1d4cd61d4a9715a8a2b90d18e13aa8e4fb5 Mon Sep 17 00:00:00 2001 From: fliespl Date: Sun, 5 Feb 2017 13:13:40 +0100 Subject: [PATCH] CRM-19914 - civicrmHooks.php issues on windows The problem is that on Windows path might resolve differently, because of notation. Problem is that even if file exists it will not be included (silent error ignore) in specific cases (directory names). --- CRM/Utils/Hook/WordPress.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/Hook/WordPress.php b/CRM/Utils/Hook/WordPress.php index 47164d3952..977a746c23 100644 --- a/CRM/Utils/Hook/WordPress.php +++ b/CRM/Utils/Hook/WordPress.php @@ -179,7 +179,7 @@ class CRM_Utils_Hook_WordPress extends CRM_Utils_Hook { if (!empty($config->customPHPPathDir) && file_exists("{$config->customPHPPathDir}/civicrmHooks.php") ) { - @include_once 'civicrmHooks.php'; + @include_once "{$config->customPHPPathDir}/civicrmHooks.php"; } // initialise with the pre-existing 'wordpress' prefix -- 2.25.1