From: Alexandre Emsenhuber Date: Wed, 12 Oct 2011 15:42:42 +0000 (+0000) Subject: Removed unused method SpecialMergeHistory::getPageLink() that would throw an error... X-Git-Tag: 1.31.0-rc.0~27127 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=1e6e2da32688478d73e3fa8ba7e44fe35f9f00e9;p=lhc%2Fweb%2Fwiklou.git Removed unused method SpecialMergeHistory::getPageLink() that would throw an error because SpecialMergeHistory::userCan() does not exist --- 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