Have been playing with custom API modules and been a bit frustrated with the XML...
[lhc/web/wiklou.git] / includes / api / ApiQueryWatchlist.php
index a5a6fe4..80bdd5d 100644 (file)
@@ -32,7 +32,7 @@ if (!defined('MEDIAWIKI')) {
  * 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 {
 
@@ -122,7 +122,7 @@ class ApiQueryWatchlist extends ApiQueryGeneratorBase {
                        'recentchanges'
                ));
 
-               $userId = $wgUser->getID();
+               $userId = $wgUser->getId();
                $this->addWhere(array (
                        'wl_namespace = rc_namespace',
                        'wl_title = rc_title',