* @return FormOptions
*/
public function getDefaultOptions() {
+ $config = $this->getConfig();
$opts = new FormOptions();
$opts->add( 'hideminor', false );
$opts->add( 'hidepatrolled', false );
$opts->add( 'hidemyself', false );
+ if ( $config->get( 'RCWatchCategoryMembership' ) ) {
+ $opts->add( 'hidecategorization', false );
+ }
+
$opts->add( 'namespace', '', FormOptions::INTNULL );
$opts->add( 'invert', false );
$opts->add( 'associated', false );
$conds[] = 'rc_user_text != ' . $dbr->addQuotes( $user->getName() );
}
}
+ if ( $this->getConfig()->get( 'RCWatchCategoryMembership' )
+ && $opts['hidecategorization'] === true
+ ) {
+ $conds[] = 'rc_type != ' . $dbr->addQuotes( RC_CATEGORIZE );
+ }
// Namespace filtering
if ( $opts['namespace'] !== '' ) {
*
* @param FormOptions $opts
*/
- function setTopText( FormOptions $opts ) {
+ public function setTopText( FormOptions $opts ) {
// nothing by default
}
*
* @param FormOptions $opts
*/
- function setBottomText( FormOptions $opts ) {
+ public function setBottomText( FormOptions $opts ) {
// nothing by default
}
* @param FormOptions $opts
* @return array
*/
- function getExtraOptions( $opts ) {
+ public function getExtraOptions( $opts ) {
return array();
}