75 # Merge adjacent edits by one user
78 foreach ( $rows as $obj ) {
85 $obj->rc_namespace >= 0 &&
86 $obj->rc_cur_id == $sorted[$n - 1]->rc_cur_id &&
87 $obj->rc_user_text == $sorted[$n - 1]->rc_user_text ) {
88 $sorted[$n - 1]->rc_last_oldid = $obj->rc_last_oldid;
95 $nsInfo = MediaWikiServices::getInstance()->getNamespaceInfo();
96 foreach ( $sorted as $obj ) {
97 $title = Title::makeTitle( $obj->rc_namespace, $obj->rc_title );
98 $talkpage = $nsInfo->hasTalkNamespace( $obj->rc_namespace ) &&
$title->canExist()
99 ?
$title->getTalkPage()->getFullURL()
103 if ( $obj->rc_deleted ) {
107 if ( $obj->rc_this_oldid ) {
108 $url =
$title->getFullURL( [
109 'diff' => $obj->rc_this_oldid,
110 'oldid' => $obj->rc_last_oldid,
114 $url =
$title->getFullURL();
118 $title->getPrefixedText(),
122 ( $obj->rc_deleted & RevisionRecord::DELETED_USER )
123 ?
wfMessage(
'rev-deleted-user' )->escaped() : $obj->rc_user_text,