From 8d906b0822bedbed69dcb19e672387716ed04966 Mon Sep 17 00:00:00 2001 From: Yaron Koren Date: Thu, 17 Oct 2024 15:09:47 +0000 Subject: [PATCH] Add $ignoreHidden param to getOption() call Needed if 'contextchars' is set to be a hidden preference. Bug: T370868 Change-Id: I793bb75dca4e34918e842a744f50b46e8e5627ad --- src/SpecialReplaceText.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SpecialReplaceText.php b/src/SpecialReplaceText.php index d1c4a388..5c05c62a 100644 --- a/src/SpecialReplaceText.php +++ b/src/SpecialReplaceText.php @@ -957,7 +957,7 @@ class SpecialReplaceText extends SpecialPage { * @return string */ function extractContext( $text, $target, $use_regex = false ) { - $cw = $this->userOptionsLookup->getOption( $this->getUser(), 'contextchars', 40 ); + $cw = $this->userOptionsLookup->getOption( $this->getUser(), 'contextchars', 40, true ); // Get all indexes if ( $use_regex ) {