Linker: Force type Language for $lang in tocList and generateTOC
authorFomafix <fomafix@googlemail.com>
Tue, 5 Jun 2018 11:46:57 +0000 (13:46 +0200)
committerFomafix <fomafix@googlemail.com>
Tue, 16 Jul 2019 05:03:59 +0000 (07:03 +0200)
commitf095d0d771e375ac8b94e2b3f0f9bb2555e8f1b5
treea0419b342e487b96ede1174ca86497f6d315febf
parentf6e07993406f4ec3b6aaa3b147e30d3da3cc04a8
Linker: Force type Language for $lang in tocList and generateTOC

The call of wfGetLangObj( $lang ) is not necessary anymore.

$lang still defaults to user interface language on unset parameter.

This change is a follow-up to I15b65fec987641885374dfef9e1229ea405f7c30.

Change-Id: I6f12097a0e6cf7d6035d1164092c8b87c58e2bee
RELEASE-NOTES-1.34
includes/DummyLinker.php
includes/Linker.php