Tobias Gritschacher has uploaded a new change for review. https://gerrit.wikimedia.org/r/106689
Change subject: Don't get extra languages for anon users ...................................................................... Don't get extra languages for anon users Bug: 49079 Change-Id: I75b95c7a2aaa80273d58ac6ed3a8709d378b5190 --- M repo/includes/EntityViewPlaceholderExpander.php 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase refs/changes/89/106689/1 diff --git a/repo/includes/EntityViewPlaceholderExpander.php b/repo/includes/EntityViewPlaceholderExpander.php index 3041e2f..c94a2a7 100644 --- a/repo/includes/EntityViewPlaceholderExpander.php +++ b/repo/includes/EntityViewPlaceholderExpander.php @@ -99,6 +99,10 @@ */ public function getExtraUserLanguages() { if ( $this->extraLanguages === null ) { + if ( $this->user->isAnon() ) { + // no extra languages for anon user + return null; + } // ignore current interface language $skip = array( $this->uiLanguage->getCode() ); $this->extraLanguages = $this->userLanguageLookup->getUserLanguages( $this->user, $skip ); -- To view, visit https://gerrit.wikimedia.org/r/106689 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I75b95c7a2aaa80273d58ac6ed3a8709d378b5190 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: Tobias Gritschacher <tobias.gritschac...@wikimedia.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits