Use stub threshold from ParserOptions when parsing
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 3 Feb 2016 18:30:54 +0000 (13:30 -0500)
committerBryanDavis <bdavis@wikimedia.org>
Mon, 8 Feb 2016 19:04:50 +0000 (19:04 +0000)
commit783fb29fbf2b78316c6b3ed22ba11ec06512638c
tree700eb9ecac9c967905235591e5c364a7f735a5e0
parent79e51b55e5312535944081e0d30ead9baa1c1b31
Use stub threshold from ParserOptions when parsing

Linker::linkAttribs() needs the stub threshold to determine the classes
in some cases. For the code path from Parser → LinkHolderArray → Linker,
we can pass down the correct threshold from ParserOptions instead of
pulling a potentially-different threshold from $wgUser.

Bug: T124367
Change-Id: I16b9d6c3044ae60d5a7fd340569c019ffc4b2a55
includes/Linker.php
includes/parser/LinkHolderArray.php