http://www.mediawiki.org/wiki/Special:Code/MediaWiki/99634
Revision: 99634
Author: ialex
Date: 2011-10-12 15:42:42 +0000 (Wed, 12 Oct 2011)
Log Message:
-----------
Removed unused method SpecialMergeHistory::getPageLink() that would throw an
error because SpecialMergeHistory::userCan() does not exist
Modified Paths:
--------------
trunk/phase3/includes/specials/SpecialMergeHistory.php
Modified: trunk/phase3/includes/specials/SpecialMergeHistory.php
===================================================================
--- trunk/phase3/includes/specials/SpecialMergeHistory.php 2011-10-12
15:09:04 UTC (rev 99633)
+++ trunk/phase3/includes/specials/SpecialMergeHistory.php 2011-10-12
15:42:42 UTC (rev 99634)
@@ -296,31 +296,6 @@
return "<li>$checkBox ($last) $pageLink . . $userLink $stxt
$comment</li>";
}
- /**
- * 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 '<span class="history-deleted">' .
- $this->getLang()->timeanddate( $ts, true ) .
'</span>';
- } else {
- $link = Linker::linkKnown(
- $titleObj,
- $this->getLang()->timeanddate( $ts, true ),
- array(),
- array(
- 'target' => $target,
- 'timestamp' => $ts
- )
- );
- if( $this->isDeleted( $row, Revision::DELETED_TEXT ) ) {
- $link = '<span class="history-deleted">' .
$link . '</span>';
- }
- 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
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs