Add $ignoreHidden param to getOption() call

Needed if 'contextchars' is set to be a hidden preference.

Bug: T370868
Change-Id: I793bb75dca4e34918e842a744f50b46e8e5627ad
This commit is contained in:
Yaron Koren 2024-10-17 15:09:47 +00:00
parent 222a236201
commit 8d906b0822

View file

@ -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 ) {