From d836677342a1b767f007cc9158f17e1b5b6da559 Mon Sep 17 00:00:00 2001 From: JoshyPHP Date: Wed, 12 Feb 2020 01:26:12 +0100 Subject: [PATCH] [ticket/16361] Invalidate text formatter when server settings change PHPBB3-16361 --- phpBB/includes/acp/acp_board.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/acp/acp_board.php b/phpBB/includes/acp/acp_board.php index cd72a8748a..32f84218df 100644 --- a/phpBB/includes/acp/acp_board.php +++ b/phpBB/includes/acp/acp_board.php @@ -549,8 +549,8 @@ class acp_board } } - // Invalidate the text_formatter cache when posting options are changed - if ($mode == 'post' && $submit) + // Invalidate the text_formatter cache when posting or server options are changed + if (preg_match('(^(?:post|server)$)', $mode) && $submit) { $phpbb_container->get('text_formatter.cache')->invalidate(); }