Opt in link should be different in migration mode
In migration mode the control for opting out is different Bug: T299927 Change-Id: Ie824c9051c929641e5ebab7a7b4a062e469ed6a0
This commit is contained in:
parent
435c903523
commit
b1cdf4acae
|
@ -640,14 +640,16 @@ class SkinVector extends SkinMustache {
|
|||
] );
|
||||
|
||||
if ( $skin->getUser()->isRegistered() ) {
|
||||
$migrationMode = $this->getConfig()->get( 'VectorSkinMigrationMode' );
|
||||
$query = $migrationMode ? 'useskin=vector&' : '';
|
||||
// Note: This data is also passed to legacy template where it is unused.
|
||||
$optOutUrl = [
|
||||
'text' => $this->msg( 'vector-opt-out' )->text(),
|
||||
'href' => SpecialPage::getTitleFor(
|
||||
'Preferences',
|
||||
false,
|
||||
'mw-prefsection-rendering-skin-skin-prefs'
|
||||
)->getLinkURL( 'wprov=' . self::OPT_OUT_LINK_TRACKING_CODE ),
|
||||
$migrationMode ? 'mw-prefsection-rendering-skin-skin-prefs' : 'mw-prefsection-rendering-skin-skin'
|
||||
)->getLinkURL( $query . 'wprov=' . self::OPT_OUT_LINK_TRACKING_CODE ),
|
||||
'title' => $this->msg( 'vector-opt-out-tooltip' )->text(),
|
||||
'active' => false,
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue