function displayWatchlist($feed, $user) { global $wgOut, $IP; require_once "{$IP}/includes/specials/SpecialWatchlist.php"; $watchlist = new Watchlist(); $feed->outHeader(); $watchlist->prepare(); while ($obj = $watchlist->getItem()) { $title = Title::makeTitle($obj->rc_namespace, $obj->rc_title); $talkpage = $title->getTalkPage(); $item = new FeedItem($title->getFullText(), $this->rcFormatDiff($obj), $title->getFullURL(), $obj->rc_timestamp, $obj->rc_user_text, $talkpage->getFullURL()); $feed->outItem($item); } $watchlist->cleanup(); $feed->outFooter(); }