From: Tobias Date: Sat, 12 Sep 2009 17:06:11 +0000 (+0000) Subject: Adjust the time according to the user configuration on Special:Revisiondelete X-Git-Tag: 1.31.0-rc.0~39771 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=973e6cf5254f9c134001c4a78e657a8535c1242f;p=lhc%2Fweb%2Fwiklou.git Adjust the time according to the user configuration on Special:Revisiondelete --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 4c17d26f2e..bb5253b6d3 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -492,6 +492,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 20556) Stub threshold's "other" in Special:Preferences now has a correct type="text" parameter * (bug 482) Don't include TOC in the printable version if it has been hidden +* Adjust the time according to the user configuration on Special:Revisiondelete == API changes in 1.16 == diff --git a/includes/specials/SpecialRevisiondelete.php b/includes/specials/SpecialRevisiondelete.php index 94923788af..26e4de5527 100644 --- a/includes/specials/SpecialRevisiondelete.php +++ b/includes/specials/SpecialRevisiondelete.php @@ -1132,7 +1132,7 @@ class RevDel_RevisionItem extends RevDel_Item { */ protected function getRevisionLink() { global $wgLang; - $date = $wgLang->timeanddate( $this->revision->getTimestamp() ); + $date = $wgLang->timeanddate( $this->revision->getTimestamp(), true ); if ( $this->isDeleted() && !$this->canView() ) { return $date; } @@ -1254,7 +1254,7 @@ class RevDel_ArchiveItem extends RevDel_RevisionItem { protected function getRevisionLink() { global $wgLang; $undelete = SpecialPage::getTitleFor( 'Undelete' ); - $date = $wgLang->timeanddate( $this->revision->getTimestamp() ); + $date = $wgLang->timeanddate( $this->revision->getTimestamp(), true ); if ( $this->isDeleted() && !$this->canView() ) { return $date; }