76 # Merge adjacent edits by one user
79 foreach ( $rows as $obj ) {
86 $obj->rc_namespace >= 0 &&
87 $obj->rc_cur_id == $sorted[$n - 1]->rc_cur_id &&
88 $obj->rc_user_text == $sorted[$n - 1]->rc_user_text ) {
89 $sorted[$n - 1]->rc_last_oldid = $obj->rc_last_oldid;
96 $nsInfo = MediaWikiServices::getInstance()->getNamespaceInfo();
97 foreach ( $sorted as $obj ) {
98 $title = Title::makeTitle( $obj->rc_namespace, $obj->rc_title );
99 $talkpage = $nsInfo->hasTalkNamespace( $obj->rc_namespace ) &&
$title->canExist()
100 ?
$title->getTalkPage()->getFullURL()
104 if ( $obj->rc_deleted ) {
108 if ( $obj->rc_this_oldid ) {
109 $url =
$title->getFullURL( [
110 'diff' => $obj->rc_this_oldid,
111 'oldid' => $obj->rc_last_oldid,
115 $url =
$title->getFullURL();
119 $title->getPrefixedText(),
123 ( $obj->rc_deleted & RevisionRecord::DELETED_USER )
124 ?
wfMessage(
'rev-deleted-user' )->escaped() : $obj->rc_user_text,