X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialWatchlist.php;h=962e0c30e28f87af52abc6ba9b7bcd8ce78b6d2e;hb=ff9f2fa33719753ff0c708f9b4a84c57593b9e58;hp=20f577603baeb8ab7485fdc3222b0e243b13db86;hpb=6d79d853b17dc45b8b4796e89d930f95f75e7216;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialWatchlist.php b/includes/specials/SpecialWatchlist.php index 20f577603b..962e0c30e2 100644 --- a/includes/specials/SpecialWatchlist.php +++ b/includes/specials/SpecialWatchlist.php @@ -111,6 +111,10 @@ class SpecialWatchlist extends ChangesListSpecialPage { $opts->add( 'hidepatrolled', $user->getBoolOption( 'watchlisthidepatrolled' ) ); $opts->add( 'hidemyself', $user->getBoolOption( 'watchlisthideown' ) ); + if ( $this->getConfig()->get( 'RCWatchCategoryMembership' ) ) { + $opts->add( 'hidecategorization', $user->getBoolOption( 'watchlisthidecategorization' ) ); + } + $opts->add( 'extended', $user->getBoolOption( 'extendwatchlist' ) ); return $opts; @@ -425,6 +429,11 @@ class SpecialWatchlist extends ChangesListSpecialPage { 'hidemyself' => 'rcshowhidemine', 'hidepatrolled' => 'rcshowhidepatr' ); + + if ( $this->getConfig()->get( 'RCWatchCategoryMembership' ) ) { + $filters['hidecategorization'] = 'rcshowhidecategorization'; + } + foreach ( $this->getCustomFilters() as $key => $params ) { $filters[$key] = $params['msg']; }