52 if ( !isset( $wgFeedClasses[$this->format] ) ) {
56 if ( !array_key_exists( $this->format, $wgFeedClasses ) ) {
58 $this->format =
'atom';
61 $feedTitle =
"$wgSitename - {$title} [$wgLanguageCode]";
63 $feedTitle, htmlspecialchars( $description ), $url );
74 # Merge adjacent edits by one user 77 foreach ( $rows as $obj ) {
84 $obj->rc_namespace >= 0 &&
85 $obj->rc_cur_id == $sorted[$n - 1]->rc_cur_id &&
86 $obj->rc_user_text == $sorted[$n - 1]->rc_user_text ) {
87 $sorted[$n - 1]->rc_last_oldid = $obj->rc_last_oldid;
94 $nsInfo = MediaWikiServices::getInstance()->getNamespaceInfo();
95 foreach ( $sorted as $obj ) {
97 $talkpage = $nsInfo->hasTalkNamespace( $obj->rc_namespace ) &&
$title->canExist()
98 ?
$title->getTalkPage()->getFullURL()
102 if ( $obj->rc_deleted ) {
106 if ( $obj->rc_this_oldid ) {
107 $url =
$title->getFullURL( [
108 'diff' => $obj->rc_this_oldid,
109 'oldid' => $obj->rc_last_oldid,
113 $url =
$title->getFullURL();
117 $title->getPrefixedText(),
121 ( $obj->rc_deleted & RevisionRecord::DELETED_USER )
122 ?
wfMessage(
'rev-deleted-user' )->escaped() : $obj->rc_user_text,
$wgSitename
Name of the site.
Feed to Special:RecentChanges and Special:RecentChangesLinked.
getFeedObject( $title, $description, $url)
Get a ChannelFeed subclass object to use.
$wgLanguageCode
Site language code.
A base class for outputting syndication feeds (e.g.
static makeTitle( $ns, $title, $fragment='', $interwiki='')
Create a new Title from a namespace index and a DB key.
static formatDiff( $row)
Format a diff for the newsfeed.
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
static buildItems( $rows)
Generate the feed items given a row from the database.
$wgFeedClasses
Available feeds objects.