Santhosh has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/398029 )
Change subject: Logged out user can't use CX from Special:CX campaign page ...................................................................... Logged out user can't use CX from Special:CX campaign page The 'try now' link should take the user to the login page. Bug: T182752 Change-Id: I0066b69a32205b48f67297591e1d8d4bca676595 --- M specials/SpecialContentTranslation.php 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation refs/changes/29/398029/1 diff --git a/specials/SpecialContentTranslation.php b/specials/SpecialContentTranslation.php index 68e9f3c..567334c 100644 --- a/specials/SpecialContentTranslation.php +++ b/specials/SpecialContentTranslation.php @@ -128,6 +128,10 @@ // Enable cx for the user in this wiki. $this->enableCXBetaFeature(); } else { + if ( $campaign ) { + // Show login page if the URL has campaign parameter + $this->requireLogin(); + } // Invalid or missing campaign param $out->showErrorPage( 'cx', -- To view, visit https://gerrit.wikimedia.org/r/398029 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0066b69a32205b48f67297591e1d8d4bca676595 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ContentTranslation Gerrit-Branch: master Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits