From 114ce467f010690dd644387a5ea6e39fd868e1b0 Mon Sep 17 00:00:00 2001 From: Buchholz Date: Tue, 19 Oct 2021 21:49:40 +0200 Subject: [PATCH] Deprecated Required parameter follows Deprecated: Required parameter $home_root follows optional parameter $hide_index --- include/admin/Settings/Permalinks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/admin/Settings/Permalinks.php b/include/admin/Settings/Permalinks.php index 17cef2b..c004a36 100644 --- a/include/admin/Settings/Permalinks.php +++ b/include/admin/Settings/Permalinks.php @@ -532,7 +532,7 @@ class Permalinks{ * add/remove cms rules from $original_contents to get new $contents * */ - public static function Rewrite_Rules( $hide_index = true, $home_root, $existing_contents = '', $www = null ){ + public static function Rewrite_Rules(?string $hide_index, $home_root, $existing_contents = '', $www = null ){ $existing_contents = (string)$existing_contents; @@ -659,7 +659,7 @@ RewriteRule .* - [F] * Optimally, generating rules for IIS would involve parsing the xml and integrating cms rules * */ - public function Rewrite_RulesIIS( $hide_index = true, $existing_contents ){ + public function Rewrite_RulesIIS(?string $hide_index, $existing_contents ){ // anything less than 80 characters can be replaced safely