From 1e6e2da32688478d73e3fa8ba7e44fe35f9f00e9 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 12 Oct 2011 15:42:42 +0000 Subject: [PATCH] Removed unused method SpecialMergeHistory::getPageLink() that would throw an error because SpecialMergeHistory::userCan() does not exist --- includes/specials/SpecialMergeHistory.php | 25 ----------------------- 1 file changed, 25 deletions(-) diff --git a/includes/specials/SpecialMergeHistory.php b/includes/specials/SpecialMergeHistory.php index 753ac9e8d0..31bec0cac9 100644 --- a/includes/specials/SpecialMergeHistory.php +++ b/includes/specials/SpecialMergeHistory.php @@ -296,31 +296,6 @@ class SpecialMergeHistory extends SpecialPage { return "
  • $checkBox ($last) $pageLink . . $userLink $stxt $comment
  • "; } - /** - * Fetch revision text link if it's available to all users - * @return string - */ - function getPageLink( $row, $titleObj, $ts, $target ) { - if( !$this->userCan( $row, Revision::DELETED_TEXT ) ) { - return '' . - $this->getLang()->timeanddate( $ts, true ) . ''; - } else { - $link = Linker::linkKnown( - $titleObj, - $this->getLang()->timeanddate( $ts, true ), - array(), - array( - 'target' => $target, - 'timestamp' => $ts - ) - ); - if( $this->isDeleted( $row, Revision::DELETED_TEXT ) ) { - $link = '' . $link . ''; - } - return $link; - } - } - function merge() { # Get the titles directly from the IDs, in case the target page params # were spoofed. The queries are done based on the IDs, so it's best to -- 2.20.1