}
/**
- * Get custom show/hide filters
+ * Get all custom filters
*
* @return array Map of filter URL param names to properties (msg/default)
*/
$extraOpts['category'] = $this->categoryFilterForm( $opts );
}
- $tagFilter = ChangeTags::buildTagFilterSelector( $opts['tagfilter'] );
+ $tagFilter = ChangeTags::buildTagFilterSelector(
+ $opts['tagfilter'], false, $this->getContext() );
if ( count( $tagFilter ) ) {
$extraOpts['tagfilter'] = $tagFilter;
}
}
unset( $value );
- $text = htmlspecialchars( $title );
if ( $active ) {
- $text = '<strong>' . $text . '</strong>';
+ $title = new HtmlArmor( '<strong>' . htmlspecialchars( $title ) . '</strong>' );
}
- return Linker::linkKnown( $this->getPageTitle(), $text, [], $params );
+ return $this->getLinkRenderer()->makeKnownLink( $this->getPageTitle(), $title, [], $params );
}
/**
$showhide = [ 'show', 'hide' ];
- foreach ( $this->getCustomFilters() as $key => $params ) {
+ foreach ( $this->getRenderableCustomFilters( $this->getCustomFilters() ) as $key => $params ) {
$filters[$key] = $params['msg'];
}
+
// Disable some if needed
if ( !$user->useRCPatrol() ) {
unset( $filters['hidepatrolled'] );