Revert "Allow type Language for $lang of doEditSectionLink"

This reverts commit 648491015c.

Parent patch is being reverted since it didn't follow the
deprecation policy.

Change-Id: Id0e80bf23593d6fc7c986df7b42ff836cc24d867
This commit is contained in:
Legoktm 2018-06-18 23:12:26 +00:00 committed by Kunal Mehta
parent 53741ed02f
commit b56e82c8a8
1 changed files with 2 additions and 2 deletions

View File

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