Merge "Force type Language for $lang of doEditSectionLink"

This commit is contained in:
jenkins-bot 2018-06-18 01:14:35 +00:00 committed by Gerrit Code Review
commit 927b1bddd2
2 changed files with 3 additions and 4 deletions

View File

@ -245,12 +245,11 @@ class SkinMinerva extends SkinTemplate implements ICustomizableSkin {
* @param Title $nt
* @param string $section
* @param string|null $tooltip
* @param Language|string|bool $lang
* @param Language $lang
* @return string
*/
public function doEditSectionLink( Title $nt, $section, $tooltip = null, $lang = false ) {
public function doEditSectionLink( Title $nt, $section, $tooltip = null, Language $lang ) {
if ( $this->isAllowedPageAction( 'edit' ) ) {
$lang = wfGetLangObj( $lang );
$message = $this->msg( 'mobile-frontend-editor-edit' )->inLanguage( $lang )->text();
$html = Html::openElement( 'span' );
$html .= Html::element( 'a', [

View File

@ -7,7 +7,7 @@
"url": "https://www.mediawiki.org/wiki/Skin:MinervaNeue",
"license-name": "GPL-2.0-or-later",
"requires": {
"MediaWiki": ">= 1.25.0",
"MediaWiki": ">= 1.32.0",
"extensions": {
"MobileFrontend": ">= 2.1.0"
}