if ( $compatibilityMode ) {
$this->dieStatus( $status );
}
- $res['error'] = $this->getErrorFromStatus( $status );
+ $res['error'] = $this->getErrorFromStatus( $status );
}
+
return $res;
}
-
/**
* Get a cached instance of an ApiPageSet object
* @return ApiPageSet
if ( $this->mPageSet === null ) {
$this->mPageSet = new ApiPageSet( $this );
}
+
return $this->mPageSet;
}
if ( $flags ) {
$result += $this->getPageSet()->getFinalParams( $flags );
}
+
return $result;
}
public function getParamDescription() {
$psModule = $this->getPageSet();
+
return $psModule->getParamDescription() + array(
'title' => 'The page to (un)watch. use titles instead',
'unwatch' => 'If set the page will be unwatched rather than watched',
}
public function getDescription() {
- return 'Add or remove pages from/to the current user\'s watchlist';
+ return 'Add or remove pages from/to the current user\'s watchlist.';
}
public function getPossibleErrors() {