jenkins-bot has submitted this change and it was merged.
Change subject: CXStats: Remove redundant condition
......................................................................
CXStats: Remove redundant condition
Followup: I0365d1366fcf5c62193f878c1e73435d9b4c0b98
Change-Id: Ib8b50299c3c2b91ab77997a8febb190ec81123cb
---
M modules/stats/ext.cx.stats.js
1 file changed, 7 insertions(+), 9 deletions(-)
Approvals:
KartikMistry: Looks good to me, approved
jenkins-bot: Verified
diff --git a/modules/stats/ext.cx.stats.js b/modules/stats/ext.cx.stats.js
index 1e1e2c9..4abe376 100644
--- a/modules/stats/ext.cx.stats.js
+++ b/modules/stats/ext.cx.stats.js
@@ -274,16 +274,14 @@
}
if ( !mw.user.isAnon() && mw.user.options.get( 'cx' ) !== '1' )
{
- if ( !mw.user.isAnon() ) {
- cxLink = mw.util.getUrl(
'Special:ContentTranslation', {
- campaign: 'cxstats',
- targettitle: mw.config.get(
'wgPageName' ),
- to: mw.config.get( 'wgContentLanguage' )
- } );
+ cxLink = mw.util.getUrl( 'Special:ContentTranslation', {
+ campaign: 'cxstats',
+ targettitle: mw.config.get( 'wgPageName' ),
+ to: mw.config.get( 'wgContentLanguage' )
+ } );
- $( '.cx-header__bar' ).hide();
- mw.hook( 'mw.cx.error' ).fire( mw.message(
'cx-stats-try-contenttranslation', cxLink ) );
- }
+ $( '.cx-header__bar' ).hide();
+ mw.hook( 'mw.cx.error' ).fire( mw.message(
'cx-stats-try-contenttranslation', cxLink ) );
} else {
$header.find( '.cx-header__translation-center a'
).text( mw.msg( 'cx-header-new-translation' ) );
}
--
To view, visit https://gerrit.wikimedia.org/r/213522
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib8b50299c3c2b91ab77997a8febb190ec81123cb
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh <[email protected]>
Gerrit-Reviewer: KartikMistry <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits