X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialWatchlist.php;h=971aa43c0997859259a8484ce81f5bf34b52ae42;hb=df519cca358ff1a0b7abfb217ba4b7dde2e98e81;hp=feb449c8473abf9281e81df0634be99d0abec92f;hpb=e94964989dc3508ccfcd4f6d71a912b98a75a5be;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialWatchlist.php b/includes/specials/SpecialWatchlist.php index feb449c847..971aa43c09 100644 --- a/includes/specials/SpecialWatchlist.php +++ b/includes/specials/SpecialWatchlist.php @@ -102,11 +102,6 @@ class SpecialWatchlist extends ChangesListSpecialPage { if ( $this->isStructuredFilterUiEnabled() ) { $output->addModuleStyles( [ 'mediawiki.rcfilters.highlightCircles.seenunseen.styles' ] ); - - $output->addJsConfigVars( - 'wgStructuredChangeFiltersEditWatchlistUrl', - SpecialPage::getTitleFor( 'EditWatchlist' )->getLocalURL() - ); } } @@ -155,7 +150,7 @@ class SpecialWatchlist extends ChangesListSpecialPage { 'activeValue' => false, 'default' => $this->getUser()->getBoolOption( 'extendwatchlist' ), 'queryCallable' => function ( $specialClassName, $ctx, $dbr, &$tables, - &$fields, &$conds, &$query_options, &$join_conds ) { + &$fields, &$conds, &$query_options, &$join_conds ) { $nonRevisionTypes = [ RC_LOG ]; Hooks::run( 'SpecialWatchlistGetNonRevisionTypes', [ &$nonRevisionTypes ] ); if ( $nonRevisionTypes ) { @@ -211,7 +206,7 @@ class SpecialWatchlist extends ChangesListSpecialPage { ], 'default' => ChangesListStringOptionsFilterGroup::NONE, 'queryCallable' => function ( $specialPageClassName, $context, $dbr, - &$tables, &$fields, &$conds, &$query_options, &$join_conds, $selectedValues ) { + &$tables, &$fields, &$conds, &$query_options, &$join_conds, $selectedValues ) { if ( $selectedValues === [ 'seen' ] ) { $conds[] = $dbr->makeList( [ 'wl_notificationtimestamp IS NULL', @@ -652,7 +647,8 @@ class SpecialWatchlist extends ChangesListSpecialPage { [ 'selected' => $opts['namespace'], 'all' => '', - 'label' => $this->msg( 'namespace' )->text() + 'label' => $this->msg( 'namespace' )->text(), + 'in-user-lang' => true, ], [ 'name' => 'namespace', 'id' => 'namespace',