diff options
author | Fomafix <fomafix@googlemail.com> | 2018-06-05 13:46:57 +0200 |
---|---|---|
committer | Fomafix <fomafix@googlemail.com> | 2019-07-16 07:03:59 +0200 |
commit | f095d0d771e375ac8b94e2b3f0f9bb2555e8f1b5 (patch) | |
tree | a0419b342e487b96ede1174ca86497f6d315febf /includes/DummyLinker.php | |
parent | f6e07993406f4ec3b6aaa3b147e30d3da3cc04a8 (diff) | |
download | mediawikicore-f095d0d771e375ac8b94e2b3f0f9bb2555e8f1b5.tar.gz mediawikicore-f095d0d771e375ac8b94e2b3f0f9bb2555e8f1b5.zip |
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
Diffstat (limited to 'includes/DummyLinker.php')
-rw-r--r-- | includes/DummyLinker.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/DummyLinker.php b/includes/DummyLinker.php index e46c45e6ead2..00d66bf13c71 100644 --- a/includes/DummyLinker.php +++ b/includes/DummyLinker.php @@ -345,11 +345,11 @@ class DummyLinker { return Linker::tocLineEnd(); } - public function tocList( $toc, $lang = null ) { + public function tocList( $toc, Language $lang = null ) { return Linker::tocList( $toc, $lang ); } - public function generateTOC( $tree, $lang = null ) { + public function generateTOC( $tree, Language $lang = null ) { return Linker::generateTOC( $tree, $lang ); } |