$this->addHelpLink( 'Help:Watching pages' );
$output->addModuleStyles( [ 'mediawiki.special' ] );
$output->addModules( [
+ 'mediawiki.special.recentchanges',
'mediawiki.special.watchlist',
] );
if ( $this->isStructuredFilterUiEnabled() ) {
$output->addModuleStyles( [ 'mediawiki.rcfilters.highlightCircles.seenunseen.styles' ] );
-
- $output->addJsConfigVars(
- 'wgStructuredChangeFiltersEditWatchlistUrl',
- SpecialPage::getTitleFor( 'EditWatchlist' )->getLocalURL()
- );
}
}
$join_conds = array_merge(
[
'watchlist' => [
- 'INNER JOIN',
+ 'JOIN',
[
'wl_user' => $user->getId(),
'wl_namespace=rc_namespace',
$services = MediaWikiServices::getInstance();
# Show a message about replica DB lag, if applicable
- $lag = $services->getDBLoadBalancer()->safeGetLag( $dbr );
+ $lag = $dbr->getSessionLagStatus()['lag'];
if ( $lag > 0 ) {
$output->showLagWarning( $lag );
}
'class' => 'namespaceselector',
]
) . "\n";
- $namespaceForm .= '<span class="mw-input-with-label">' . Xml::checkLabel(
+ $hidden = $opts['namespace'] === '' ? ' mw-input-hidden' : '';
+ $namespaceForm .= '<span class="mw-input-with-label' . $hidden . '">' . Xml::checkLabel(
$this->msg( 'invert' )->text(),
'invert',
'nsinvert',
$opts['invert'],
[ 'title' => $this->msg( 'tooltip-invert' )->text() ]
) . "</span>\n";
- $namespaceForm .= '<span class="mw-input-with-label">' . Xml::checkLabel(
+ $namespaceForm .= '<span class="mw-input-with-label' . $hidden . '">' . Xml::checkLabel(
$this->msg( 'namespace_association' )->text(),
'associated',
'nsassociated',