From 32b1fba22a0076dc1053f074c55d745bfd78337a Mon Sep 17 00:00:00 2001 From: Jon Stovell Date: Sat, 11 May 2024 17:57:24 -0600 Subject: [PATCH] Adds $backward_compatibility to Settings.php Signed-off-by: Jon Stovell --- Sources/Config.php | 28 +++++++++++++++++++++------- other/Settings.php | 8 ++++++++ other/Settings_bak.php | 8 ++++++++ 3 files changed, 37 insertions(+), 7 deletions(-) diff --git a/Sources/Config.php b/Sources/Config.php index df3c1c98e8..f9f542e683 100644 --- a/Sources/Config.php +++ b/Sources/Config.php @@ -25,13 +25,6 @@ class Config * Public static properties **************************/ - /** - * @var bool - * - * Master switch to enable backward compatibility behaviours. - */ - public static bool $backward_compatibility = true; - ########## Maintenance ########## /** * @var int 0, 1, 2 @@ -254,6 +247,14 @@ class Config */ public static string $tasksdir; + ######### Modification Support ######### + /** + * @var bool + * + * Master switch to enable backward compatibility behaviours. + */ + public static bool $backward_compatibility = true; + ######### Legacy settings ######### /** * @var string @@ -777,6 +778,19 @@ class Config 'raw_default' => true, 'type' => 'string', ], + 'backward_compatibility' => [ + 'text' => <<<'END' + + ######### Modification Support ######### + /** + * @var bool + * + * Master switch to enable backward compatibility behaviours. + */ + END, + 'default' => true, + 'type' => 'boolean', + ], 'db_character_set' => [ 'text' => <<<'END' diff --git a/other/Settings.php b/other/Settings.php index e865d55c4d..d5557aeffe 100644 --- a/other/Settings.php +++ b/other/Settings.php @@ -222,6 +222,14 @@ */ $languagesdir = dirname(__FILE__) . '/Languages'; +######### Modification Support ######### +/** + * @var bool + * + * Master switch to enable backward compatibility behaviours. + */ +$backward_compatibility = true; + ######### Legacy Settings ######### /** * @var string diff --git a/other/Settings_bak.php b/other/Settings_bak.php index e865d55c4d..d5557aeffe 100644 --- a/other/Settings_bak.php +++ b/other/Settings_bak.php @@ -222,6 +222,14 @@ */ $languagesdir = dirname(__FILE__) . '/Languages'; +######### Modification Support ######### +/** + * @var bool + * + * Master switch to enable backward compatibility behaviours. + */ +$backward_compatibility = true; + ######### Legacy Settings ######### /** * @var string