parser: apply $wgMiserMode restriction to REVISIONID for NS_USER/NS_PROJECT

Bug: T235957
Change-Id: I7dbf7ab5b730a18d44e4bbaad46475c01d3b1291
This commit is contained in:
Aaron Schulz 2020-02-07 22:55:52 -08:00
parent 9da23edbea
commit ea6bc312e7

View file

@ -2835,8 +2835,7 @@ class Parser {
$this->svcOptions->get( 'MiserMode' ) &&
!$this->mOptions->getInterfaceMessage() &&
// @TODO: disallow this word on all namespaces
$this->nsInfo->isSubject( $namespace ) &&
!in_array( $namespace, [ NS_USER, NS_PROJECT ], true )
$this->nsInfo->isSubject( $namespace )
) {
// Use a stub result instead of the actual revision ID in order to avoid
// double parses on page save but still allow preview detection (T137900)