aboutsummaryrefslogtreecommitdiffstats
path: root/includes/DummyLinker.php
diff options
context:
space:
mode:
authorFomafix <fomafix@googlemail.com>2018-06-05 13:46:57 +0200
committerFomafix <fomafix@googlemail.com>2019-07-16 07:03:59 +0200
commitf095d0d771e375ac8b94e2b3f0f9bb2555e8f1b5 (patch)
treea0419b342e487b96ede1174ca86497f6d315febf /includes/DummyLinker.php
parentf6e07993406f4ec3b6aaa3b147e30d3da3cc04a8 (diff)
downloadmediawikicore-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.php4
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 );
}