Index: branches/wmf-deployment/includes/specials/SpecialRevisiondelete.php |
— | — | @@ -1418,7 +1418,7 @@ |
1419 | 1419 | * Overridden by RevDel_ArchivedFileItem. |
1420 | 1420 | */ |
1421 | 1421 | protected function getLink() { |
1422 | | - global $wgLang; |
| 1422 | + global $wgLang, $wgUser; |
1423 | 1423 | $date = $wgLang->timeanddate( $this->file->getTimestamp(), true ); |
1424 | 1424 | if ( $this->isDeleted() ) { |
1425 | 1425 | # Hidden files... |
— | — | @@ -1430,7 +1430,8 @@ |
1431 | 1431 | $date, array(), |
1432 | 1432 | array( |
1433 | 1433 | 'target' => $this->list->title->getPrefixedText(), |
1434 | | - 'file' => $this->file->sha1 . '.' . $this->file->getExtension() |
| 1434 | + 'file' => $this->file->getArchiveName(), |
| 1435 | + 'token' => $wgUser->editToken( $this->file->getArchiveName() ) |
1435 | 1436 | ) |
1436 | 1437 | ); |
1437 | 1438 | } |