Index: trunk/phase3/includes/FileDeleteForm.php |
— | — | @@ -132,8 +132,8 @@ |
133 | 133 | "{$message}-old", |
134 | 134 | 'parse', |
135 | 135 | $this->title->getText(), |
136 | | - $wgLang->date( $this->getTimestamp() ), |
137 | | - $wgLang->time( $this->getTimestamp() ), |
| 136 | + $wgLang->date( $this->getTimestamp(), true ), |
| 137 | + $wgLang->time( $this->getTimestamp(), true ), |
138 | 138 | $wgServer . $this->file->getArchiveUrl( $this->oldimage ) |
139 | 139 | ); |
140 | 140 | } else { |
— | — | @@ -196,7 +196,12 @@ |
197 | 197 | * @return string |
198 | 198 | */ |
199 | 199 | private function getTimestamp() { |
200 | | - return substr( $this->oldimage, 0, 14 ); |
| 200 | + static $timestamp = false; |
| 201 | + if( $timestamp === false ) { |
| 202 | + $file = RepoGroup::singleton()->getLocalRepo()->newFromArchiveName( $this->title, $this->oldimage ); |
| 203 | + $timestamp = $file->getTimestamp(); |
| 204 | + } |
| 205 | + return $timestamp; |
201 | 206 | } |
202 | 207 | |
203 | 208 | } |
\ No newline at end of file |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -1506,13 +1506,13 @@ |
1507 | 1507 | 'filedelete' => 'Delete $1', |
1508 | 1508 | 'filedelete-legend' => 'Delete file', |
1509 | 1509 | 'filedelete-intro' => "You are deleting '''[[Media:$1|$1]]'''.", |
1510 | | -'filedelete-intro-old' => "<span class=\"plainlinks\">You are deleting the version of '''[[Media:$1|$1]]''' as of [$4 $2, $3].</span>", |
| 1510 | +'filedelete-intro-old' => "<span class=\"plainlinks\">You are deleting the version of '''[[Media:$1|$1]]''' as of [$4 $3, $2].</span>", |
1511 | 1511 | 'filedelete-comment' => 'Comment:', |
1512 | 1512 | 'filedelete-submit' => 'Delete', |
1513 | 1513 | 'filedelete-success' => "'''$1''' has been deleted.", |
1514 | | -'filedelete-success-old' => "<span class=\"plainlinks\">The version of '''[[Media:$1|$1]]''' as of $2, $3 has been deleted.</span>", |
| 1514 | +'filedelete-success-old' => "<span class=\"plainlinks\">The version of '''[[Media:$1|$1]]''' as of $3, $2 has been deleted.</span>", |
1515 | 1515 | 'filedelete-nofile' => "'''$1''' does not exist on this site.", |
1516 | | -'filedelete-nofile-old' => "There is no version of '''$1''' dated $2, $3.", |
| 1516 | +'filedelete-nofile-old' => "There is no version of '''$1''' dated $3, $2.", |
1517 | 1517 | 'filedelete-iscurrent' => 'You are attempting to delete the most recent version of this file. Please revert to an older version first.', |
1518 | 1518 | |
1519 | 1519 | # MIME search |