| @@ 89-104 (lines=16) @@ | ||
| 86 | ); |
|
| 87 | } |
|
| 88 | ||
| 89 | protected function getDiffLink() { |
|
| 90 | if ( $this->isDeleted() && !$this->canViewContent() ) { |
|
| 91 | return $this->list->msg( 'diff' )->escaped(); |
|
| 92 | } |
|
| 93 | ||
| 94 | return Linker::link( |
|
| 95 | SpecialPage::getTitleFor( 'Undelete' ), |
|
| 96 | $this->list->msg( 'diff' )->escaped(), |
|
| 97 | [], |
|
| 98 | [ |
|
| 99 | 'target' => $this->list->title->getPrefixedText(), |
|
| 100 | 'diff' => 'prev', |
|
| 101 | 'timestamp' => $this->revision->getTimestamp() |
|
| 102 | ] |
|
| 103 | ); |
|
| 104 | } |
|
| 105 | } |
|
| 106 | ||
| @@ 133-148 (lines=16) @@ | ||
| 130 | * Overridden by RevDelArchiveItem |
|
| 131 | * @return string |
|
| 132 | */ |
|
| 133 | protected function getDiffLink() { |
|
| 134 | if ( $this->isDeleted() && !$this->canViewContent() ) { |
|
| 135 | return $this->list->msg( 'diff' )->escaped(); |
|
| 136 | } else { |
|
| 137 | return Linker::linkKnown( |
|
| 138 | $this->list->title, |
|
| 139 | $this->list->msg( 'diff' )->escaped(), |
|
| 140 | [], |
|
| 141 | [ |
|
| 142 | 'diff' => $this->revision->getId(), |
|
| 143 | 'oldid' => 'prev', |
|
| 144 | 'unhide' => 1 |
|
| 145 | ] |
|
| 146 | ); |
|
| 147 | } |
|
| 148 | } |
|
| 149 | ||
| 150 | /** |
|
| 151 | * @return string A HTML <li> element representing this revision, showing |
|
| @@ 380-395 (lines=16) @@ | ||
| 377 | * of extending RevDelItem |
|
| 378 | * @return string |
|
| 379 | */ |
|
| 380 | protected function getDiffLink() { |
|
| 381 | if ( $this->isDeleted() && !$this->canViewContent() ) { |
|
| 382 | return $this->context->msg( 'diff' )->escaped(); |
|
| 383 | } else { |
|
| 384 | return Linker::linkKnown( |
|
| 385 | $this->list->title, |
|
| 386 | $this->list->msg( 'diff' )->escaped(), |
|
| 387 | [], |
|
| 388 | [ |
|
| 389 | 'diff' => $this->revision->getId(), |
|
| 390 | 'oldid' => 'prev', |
|
| 391 | 'unhide' => 1 |
|
| 392 | ] |
|
| 393 | ); |
|
| 394 | } |
|
| 395 | } |
|
| 396 | ||
| 397 | /** |
|
| 398 | * @todo Essentially a copy of RevDelRevisionItem::getHTML. That class |
|