From 343f7b3b19b7c6aa008daff483cc5537a84b2ebb Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Mon, 1 May 2023 11:47:14 -0400 Subject: [PATCH] warn about obsolete setting --- CRM/Upgrade/Incremental/php/FiveSixtyTwo.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CRM/Upgrade/Incremental/php/FiveSixtyTwo.php b/CRM/Upgrade/Incremental/php/FiveSixtyTwo.php index 39d2e0da2f..59f18937e9 100644 --- a/CRM/Upgrade/Incremental/php/FiveSixtyTwo.php +++ b/CRM/Upgrade/Incremental/php/FiveSixtyTwo.php @@ -31,6 +31,13 @@ class CRM_Upgrade_Incremental_php_FiveSixtyTwo extends CRM_Upgrade_Incremental_B // See also: https://lab.civicrm.org/dev/core/-/issues/3961 $preUpgradeMessage .= "

{$message}

"; } + + if (defined('CIVICRM_SETTINGS_PATH') && CIVICRM_SETTINGS_PATH) { + $contents = file_get_contents(CIVICRM_SETTINGS_PATH); + if (strpos($contents, 'auto_detect_line_endings') !== FALSE) { + $preUpgradeMessage .= '

' . ts('Your civicrm.settings.php file contains a line to set the php variable `auto_detect_line_endings`. It is deprecated and the line should be removed from the file.') . '

'; + } + } } } -- 2.25.1