From a4ed897c9ea6ea79f9e95df5ddf605794be8c045 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Fri, 14 Jun 2019 11:26:40 +1000 Subject: [PATCH] Add in deprecated notice about code path being removed at end of 2019 --- CRM/Core/BAO/Cache/Psr16.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Core/BAO/Cache/Psr16.php b/CRM/Core/BAO/Cache/Psr16.php index 1c353f7462..b1de191996 100644 --- a/CRM/Core/BAO/Cache/Psr16.php +++ b/CRM/Core/BAO/Cache/Psr16.php @@ -209,6 +209,10 @@ class CRM_Core_BAO_Cache_Psr16 { if ($multisiteExtensionStatus == $extensions::STATUS_INSTALLED) { $extension_version = civicrm_api3('Extension', 'get', ['key' => 'org.civicrm.multisite'])['values'][0]['version']; if (version_compare($extension_version, '2.7', '<')) { + Civi::log()->warning( + 'CRM_Core_BAO_Cache_PSR is deprecated for multisite extension, you should upgrade to the latest version to avoid this warning, this code will be removed at the end of 2019', + ['civi.tag' => 'deprecated'] + ); $groups[] = 'descendant groups for an org'; } } -- 2.25.1