Index: trunk/phase3/includes/ImagePage.php |
— | — | @@ -1045,20 +1045,24 @@ |
1046 | 1046 | # Don't link to unviewable files |
1047 | 1047 | $row .= '<span class="history-deleted">' . $wgLang->timeAndDate( $timestamp, true ) . '</span>'; |
1048 | 1048 | } elseif ( $file->isDeleted( File::DELETED_FILE ) ) { |
1049 | | - $this->preventClickjacking(); |
1050 | | - $revdel = SpecialPage::getTitleFor( 'Revisiondelete' ); |
1051 | | - # Make a link to review the image |
1052 | | - $url = $this->skin->link( |
1053 | | - $revdel, |
1054 | | - $wgLang->timeAndDate( $timestamp, true ), |
1055 | | - array(), |
1056 | | - array( |
1057 | | - 'target' => $this->title->getPrefixedText(), |
1058 | | - 'file' => $img, |
1059 | | - 'token' => $wgUser->editToken( $img ) |
1060 | | - ), |
1061 | | - array( 'known', 'noclasses' ) |
1062 | | - ); |
| 1049 | + if ( $local ) { |
| 1050 | + $this->preventClickjacking(); |
| 1051 | + $revdel = SpecialPage::getTitleFor( 'Revisiondelete' ); |
| 1052 | + # Make a link to review the image |
| 1053 | + $url = $this->skin->link( |
| 1054 | + $revdel, |
| 1055 | + $wgLang->timeAndDate( $timestamp, true ), |
| 1056 | + array(), |
| 1057 | + array( |
| 1058 | + 'target' => $this->title->getPrefixedText(), |
| 1059 | + 'file' => $img, |
| 1060 | + 'token' => $wgUser->editToken( $img ) |
| 1061 | + ), |
| 1062 | + array( 'known', 'noclasses' ) |
| 1063 | + ); |
| 1064 | + } else { |
| 1065 | + $url = $wgLang->timeAndDate( $timestamp, true ); |
| 1066 | + } |
1063 | 1067 | $row .= '<span class="history-deleted">' . $url . '</span>'; |
1064 | 1068 | } else { |
1065 | 1069 | $url = $iscur ? $this->current->getUrl() : $this->current->getArchiveUrl( $img ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -230,6 +230,7 @@ |
231 | 231 | * (bug 28395) Set forgotten parameters types in ApiParse |
232 | 232 | * (bug 28430) Make html and TeX output of <math> always be left-to-right. |
233 | 233 | * (bug 28306) Fix exposure of suppressed usernames in ForeignDBRepo |
| 234 | +* (bug 28372) Fix bogus link to suppressed file versions in ForeignDBRepo |
234 | 235 | |
235 | 236 | === API changes in 1.18 === |
236 | 237 | * (bug 26339) Throw warning when truncating an overlarge API result |