Index: trunk/phase3/includes/specials/SpecialRevisiondelete.php |
— | — | @@ -1474,7 +1474,7 @@ |
1475 | 1475 | * Overridden by RevDel_ArchivedFileItem. |
1476 | 1476 | */ |
1477 | 1477 | protected function getLink() { |
1478 | | - global $wgLang; |
| 1478 | + global $wgLang, $wgUser; |
1479 | 1479 | $date = $wgLang->timeanddate( $this->file->getTimestamp(), true ); |
1480 | 1480 | if ( $this->isDeleted() ) { |
1481 | 1481 | # Hidden files... |
— | — | @@ -1486,7 +1486,8 @@ |
1487 | 1487 | $date, array(), |
1488 | 1488 | array( |
1489 | 1489 | '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() ) |
1491 | 1492 | ) |
1492 | 1493 | ); |
1493 | 1494 | } |