* This query action allows clients to retrieve a list of recently modified pages
* that are part of the logged-in user's watchlist.
*
- * @addtogroup API
+ * @ingroup API
*/
class ApiQueryWatchlist extends ApiQueryGeneratorBase {
'recentchanges'
));
- $userId = $wgUser->getID();
+ $userId = $wgUser->getId();
$this->addWhere(array (
'wl_namespace = rc_namespace',
'wl_title = rc_title',