Index: trunk/extensions/DeletedContributions/DeletedContributions_body.php |
— | — | @@ -116,29 +116,28 @@ |
117 | 117 | ) ); |
118 | 118 | |
119 | 119 | $page = Title::makeTitle( $row->ar_namespace, $row->ar_title ); |
120 | | - $timestamp = $row->ar_timestamp; |
121 | 120 | |
122 | | - $undelete =& SpecialPage::getTitleFor( 'Undelete' ); |
| 121 | + $undelete = SpecialPage::getTitleFor( 'Undelete' ); |
123 | 122 | |
124 | 123 | $logs = SpecialPage::getTitleFor( 'Log' ); |
125 | 124 | $dellog = $sk->makeKnownLinkObj( $logs, $this->messages['deletionlog'], 'type=delete&page=' . urlencode( $page->getPrefixedText() ) ); |
126 | 125 | |
127 | 126 | $reviewlink = $sk->makeKnownLinkObj( $undelete, $this->messages['undeletebtn'], 'target=' . $page->getPrefixedUrl() ); |
128 | 127 | |
129 | | - $link = $sk->makeKnownLinkObj( $undelete, htmlspecialchars( $page->getPrefixedText() ), 'target=' . $page->getPrefixedUrl() . '×tamp=' . $timestamp); |
| 128 | + $link = $sk->makeKnownLinkObj( $undelete, htmlspecialchars( $page->getPrefixedText() ), 'target=' . $page->getPrefixedUrl() . '×tamp=' . $rev->getTimestamp()); |
130 | 129 | |
131 | 130 | $comment = $sk->revComment( $rev ); |
132 | | - $d = $wgLang->timeanddate( wfTimestamp( TS_MW, $row->ar_timestamp ), true ); |
| 131 | + $d = $wgLang->timeanddate( $rev->getTimestamp(), true ); |
133 | 132 | |
134 | 133 | if( $rev->isDeleted( Revision::DELETED_TEXT ) ) { |
135 | 134 | $d = '<span class="history-deleted">' . $d . '</span>'; |
136 | 135 | } else { |
137 | | - $link = $sk->makeKnownLinkObj( $undelete, $d, 'target=' . $page->getPrefixedUrl() . '×tamp=' . $timestamp); |
| 136 | + $link = $sk->makeKnownLinkObj( $undelete, $d, 'target=' . $page->getPrefixedUrl() . '×tamp=' . $rev->getTimestamp()); |
138 | 137 | } |
139 | 138 | |
140 | 139 | $pagelink = $sk->makeLinkObj( $page ); |
141 | 140 | |
142 | | - if( $row->ar_minor_edit ) { |
| 141 | + if( $rev->isMinor() ) { |
143 | 142 | $mflag = '<span class="minor">' . $this->messages['minoreditletter'] . '</span> '; |
144 | 143 | } else { |
145 | 144 | $mflag = ''; |