if ( !is_null( $params['type'] ) ) {
try {
$this->addWhereFld( 'rc_type', RecentChange::parseToRCType( $params['type'] ) );
- } catch ( MWException $e ) {
+ } catch ( Exception $e ) {
ApiBase::dieDebug( __METHOD__, $e->getMessage() );
}
}
);
}
- public function getExamplesMessages() {
+ protected function getExamplesMessages() {
return array(
'action=query&list=watchlist'
=> 'apihelp-query+watchlist-example-simple',