mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-09-23 10:21:40 +00:00
Disable languages on history page
Bug: T328996
Change-Id: I895bea1e7d3e0c23bcc60395e562297e016d1f5a
(cherry picked from commit d2eb3c4e55
)
This commit is contained in:
parent
137a8fb6be
commit
c7eb42fc9c
|
@ -65,6 +65,14 @@ class SkinVector22 extends SkinMustache {
|
|||
* @return bool
|
||||
*/
|
||||
private function canHaveLanguages(): bool {
|
||||
$action = $this->getContext()->getActionName();
|
||||
|
||||
// FIXME: This logic should be moved into the ULS extension or core given the button is hidden,
|
||||
// it should not be rendered, short term fix for T328996.
|
||||
if ( $action === 'history' ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$title = $this->getTitle();
|
||||
// Defensive programming - if a special page has added languages explicitly, best to show it.
|
||||
if ( $title && $title->isSpecialPage() && empty( $this->getLanguagesCached() ) ) {
|
||||
|
|
Loading…
Reference in a new issue