Index: trunk/phase3/includes/PageHistory.php |
— | — | @@ -206,7 +206,13 @@ |
207 | 207 | $s .= "(<small>$del</small>) "; |
208 | 208 | } |
209 | 209 | |
210 | | - $s .= " $link <span class='history-user'>$user</span>"; |
| 210 | + #getUser is safe, but this avoids making the invalid untargeted contribs links |
| 211 | + if( $row->rev_deleted & Revision::DELETED_USER ) { |
| 212 | + $user = '<span class="history-deleted">' . wfMsg('rev-deleted-user') . '</span>'; |
| 213 | + $s .= " $link <span class='history-user'>$user</span>"; |
| 214 | + } else { |
| 215 | + $s .= " $link <span class='history-user'>$user</span>"; |
| 216 | + } |
211 | 217 | |
212 | 218 | if( $row->rev_minor_edit ) { |
213 | 219 | $s .= ' ' . wfElement( 'span', array( 'class' => 'minor' ), wfMsg( 'minoreditletter') ); |
— | — | @@ -216,6 +222,7 @@ |
217 | 223 | if ($notificationtimestamp && ($row->rev_timestamp >= $notificationtimestamp)) { |
218 | 224 | $s .= ' <span class="updatedmarker">' . wfMsgHtml( 'updatedmarker' ) . '</span>'; |
219 | 225 | } |
| 226 | + #add blurb about having been deleted |
220 | 227 | if( $row->rev_deleted & Revision::DELETED_TEXT ) { |
221 | 228 | $s .= ' ' . wfMsgHtml( 'deletedrev' ); |
222 | 229 | } |