X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FIDS.php;h=7a3eded15af81fff272faf5805dc74788c901ba5;hb=3c3fae78d896a78ab2fda0d687e24ff273648d05;hp=e72afd146f3921c1014eaa149f8779713648a287;hpb=eda4c5942ca6c0f3f394957acac921b9d3d9854e;p=civicrm-core.git diff --git a/CRM/Core/IDS.php b/CRM/Core/IDS.php index e72afd146f..7a3eded15a 100644 --- a/CRM/Core/IDS.php +++ b/CRM/Core/IDS.php @@ -103,14 +103,14 @@ class CRM_Core_IDS { public static function createBaseConfig() { $config = \CRM_Core_Config::singleton(); $tmpDir = empty($config->uploadDir) ? Civi::paths()->getVariable('civicrm.compile', 'path') : $config->uploadDir; - global $civicrm_root; + $pkgs = Civi::paths()->getVariable('civicrm.packages', 'path'); return [ 'General' => [ 'filter_type' => 'xml', - 'filter_path' => "{$civicrm_root}/packages/IDS/default_filter.xml", + 'filter_path' => "{$pkgs}/IDS/default_filter.xml", 'tmp_path' => $tmpDir, - 'HTML_Purifier_Path' => $civicrm_root . 'packages/IDS/vendors/htmlpurifier/HTMLPurifier.auto.php', + 'HTML_Purifier_Path' => $pkgs . '/IDS/vendors/htmlpurifier/HTMLPurifier.auto.php', 'HTML_Purifier_Cache' => $tmpDir, 'scan_keys' => '', 'exceptions' => ['__utmz', '__utmc'],