From: fliespl Date: Sun, 5 Feb 2017 12:13:40 +0000 (+0100) Subject: CRM-19914 - civicrmHooks.php issues on windows X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8efdc1d4cd61d4a9715a8a2b90d18e13aa8e4fb5;p=civicrm-core.git 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). --- 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