wiki.techinc.nl/includes/diff
Tim Starling 6790bf9910 Remove $wgLang usage from Title
StubUserLang was meant to avoid the cost of looking up the user
preferences on requests which don't need it. There's no point in using
it if you are going to unconditionally call a method on the resulting
object.

StubUserLang proxies to RequestContext::getLanguage() via __call(),
which has a cost. Originally this cost was avoided on subsequent calls
by overwriting $wgLang, but this mechanism is not effective if you retain
a reference to the StubUserLang.

Removing the potential for Title::getPageLanguage() to return
StubUserLang simplifies the type declarations for methods that call it.

Bug: T160814
Change-Id: I12ad75c2496ca727580aac55e860178d15febb6e
2023-07-11 11:15:02 +10:00
..
Hook diff: Move SlotDiffRenderer::getTablePrefix() parts assembly up to DifferenceEngine 2023-06-26 11:28:59 +10:00
DifferenceEngine.php Remove $wgLang usage from Title 2023-07-11 11:15:02 +10:00
DifferenceEngineSlotDiffRenderer.php build: Update mediawiki/mediawiki-phan-config to 0.12.0 2022-10-08 15:45:42 +02:00
IncompatibleDiffTypesException.php Improve handling of diffs between incompatible content models 2023-06-23 19:09:59 +00:00
SlotDiffRenderer.php Merge "diff: Move SlotDiffRenderer::getTablePrefix() parts assembly up to DifferenceEngine" 2023-06-26 03:13:42 +00:00
TextSlotDiffRenderer.php Fix Chinese diff segmentation 2023-07-06 18:14:30 +10:00
UnsupportedSlotDiffRenderer.php Reorg: Move HTML-related classes out of includes/ to Html/ 2023-02-16 20:40:01 +01:00