X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fchanges%2FEnhancedChangesList.php;h=e5916bd7f25467e0a5ad44c563ad92076a8cca83;hb=266dbe55e8c752654a1041a77063ae5d389c2f75;hp=a1e9d2843b15c8ab2986733ebad342ff0d436d5a;hpb=586effc0b7a0307ded8a7a587adca44b9b3febf9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/changes/EnhancedChangesList.php b/includes/changes/EnhancedChangesList.php index a1e9d2843b..e5916bd7f2 100644 --- a/includes/changes/EnhancedChangesList.php +++ b/includes/changes/EnhancedChangesList.php @@ -364,8 +364,6 @@ class EnhancedChangesList extends ChangesList { if ( $rcObj->mAttribs['rc_type'] == RC_LOG ) { $data['logEntry'] = $this->insertLogEntry( $rcObj ); - } elseif ( $this->isCategorizationWithoutRevision( $rcObj ) ) { - $data['comment'] = $this->insertComment( $rcObj ); } else { # User links $data['userLink'] = $rcObj->userlink; @@ -568,9 +566,15 @@ class EnhancedChangesList extends ChangesList { } # Diff and hist links - if ( intval( $type ) !== RC_LOG && intval( $type ) !== RC_CATEGORIZE ) { + if ( $type != RC_LOG ) { $query['action'] = 'history'; - $data['historyLink'] = $this->getDiffHistLinks( $rcObj, $query ); + $data['historyLink'] = ' ' . $this->msg( 'parentheses' ) + ->rawParams( $rcObj->difflink . $this->message['pipe-separator'] . Linker::linkKnown( + $rcObj->getTitle(), + $this->message['hist'], + array(), + $query + ) )->escaped(); } $data['separatorAfterLinks'] = ' . . '; @@ -585,15 +589,10 @@ class EnhancedChangesList extends ChangesList { if ( $type == RC_LOG ) { $data['logEntry'] = $this->insertLogEntry( $rcObj ); - } elseif ( $this->isCategorizationWithoutRevision( $rcObj ) ) { - $data['comment'] = $this->insertComment( $rcObj ); } else { $data['userLink'] = $rcObj->userlink; $data['userTalkLink'] = $rcObj->usertalklink; $data['comment'] = $this->insertComment( $rcObj ); - if ( intval( $type ) === RC_CATEGORIZE ) { - $data['historyLink'] = $this->getDiffHistLinks( $rcObj, $query ); - } $data['rollback'] = $this->getRollback( $rcObj ); }