Merge "skins: Remove deprecated SkinCopyrightFooter $forContent param"

This commit is contained in:
jenkins-bot 2019-11-19 21:17:56 +00:00 committed by Gerrit Code Review
commit 2ea3adebc2
3 changed files with 2 additions and 9 deletions

View file

@ -202,6 +202,7 @@ because of Phabricator reports.
* Skin::makeI18nUrl() and makeNSUrl() have been deprecated, no longer used.
* Title::countAuthorsBetween and Title::getAuthorsBetween have been deprecated.
Use respective methods in RevisionStore instead.
* Remove deprecated SkinCopyrightFooter &$forContent parameter
* …
=== Other changes in 1.35 ===

View file

@ -3048,8 +3048,6 @@ $type: 'normal' or 'history' for old/diff views
&$msg: overridable message; usually 'copyright' or 'history_copyright'. This
message must be in HTML format, not wikitext!
&$link: overridable HTML link to be passed into the message as $1
&$forContent: DEPRECATED! overridable flag if copyright footer is shown in
content language.
'SkinEditSectionLinks': Modify the section edit links
$skin: Skin object rendering the UI

View file

@ -881,13 +881,7 @@ abstract class Skin extends ContextSource {
}
// Allow for site and per-namespace customization of copyright notice.
// @todo Remove deprecated $forContent param from hook handlers and then remove here.
$forContent = true;
Hooks::run(
'SkinCopyrightFooter',
[ $this->getTitle(), $type, &$msg, &$link, &$forContent ]
);
Hooks::run( 'SkinCopyrightFooter', [ $this->getTitle(), $type, &$msg, &$link ] );
return $this->msg( $msg )->rawParams( $link )->text();
}