r57131 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57130‎ | r57131 | r57132 >
Date:18:49, 30 September 2009
Author:aaron
Status:ok
Tags:
Comment:
Fixed deleted image link regression: was totally broken
Modified paths:
  • /trunk/phase3/includes/specials/SpecialRevisiondelete.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialRevisiondelete.php
@@ -1474,7 +1474,7 @@
14751475 * Overridden by RevDel_ArchivedFileItem.
14761476 */
14771477 protected function getLink() {
1478 - global $wgLang;
 1478+ global $wgLang, $wgUser;
14791479 $date = $wgLang->timeanddate( $this->file->getTimestamp(), true );
14801480 if ( $this->isDeleted() ) {
14811481 # Hidden files...
@@ -1486,7 +1486,8 @@
14871487 $date, array(),
14881488 array(
14891489 'target' => $this->list->title->getPrefixedText(),
1490 - 'file' => $this->file->sha1 . '.' . $this->file->getExtension()
 1490+ 'file' => $this->file->getArchiveName(),
 1491+ 'token' => $wgUser->editToken( $this->file->getArchiveName() )
14911492 )
14921493 );
14931494 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r57135merged r57131aaron18:57, 30 September 2009

Status & tagging log