}
$comments = "";
- if( isset( $row->cur_comment ) ) {
- $comments = $row->cur_comment;
- } elseif( isset( $row->old_comment ) ) {
- $comments = $row->old_comment;
- } elseif( isset( $row->rc_cur_comment ) ) {
- $comments = $row->rc_cur_comment;
+ if( $title ) {
+ $talkpage = $title->getTalkPage();
+ $comments = $talkpage->getFullURL();
}
return new FeedItem(
$feed->outHeader();
foreach( $rows as $obj ) {
$title = Title::makeTitle( $obj->rc_namespace, $obj->rc_title );
+ $talkpage = $title->getTalkPage();
$item = new FeedItem(
$title->getPrefixedText(),
htmlspecialchars( $obj->rc_comment ),
$title->getFullURL(),
$obj->rc_timestamp,
$obj->rc_user_text,
- htmlspecialchars( $obj->rc_comment )
+ $talkpage->getFullURL()
);
$feed->outItem( $item );
}