Index: trunk/phase3/includes/specials/SpecialNewpages.php |
— | — | @@ -290,8 +290,17 @@ |
291 | 291 | public function formatRow( $result ) { |
292 | 292 | global $wgLang, $wgContLang; |
293 | 293 | |
| 294 | + # Revision deletion works on revisions, so we should cast one |
| 295 | + $row = array( |
| 296 | + 'comment' => $result->rc_comment, |
| 297 | + 'deleted' => $result->rc_deleted, |
| 298 | + 'user_text' => $result->rc_user_text, |
| 299 | + 'user' => $result->rc_user, |
| 300 | + ); |
| 301 | + $rev = new Revision( $row ); |
| 302 | + |
294 | 303 | $classes = array(); |
295 | | - |
| 304 | + |
296 | 305 | $dm = $wgContLang->getDirMark(); |
297 | 306 | |
298 | 307 | $title = Title::makeTitleSafe( $result->rc_namespace, $result->rc_title ); |
— | — | @@ -324,10 +333,10 @@ |
325 | 334 | '[' . wfMsgExt( 'nbytes', array( 'parsemag', 'escape' ), $wgLang->formatNum( $result->length ) ) . |
326 | 335 | ']' |
327 | 336 | ); |
328 | | - $ulink = $this->skin->userLink( $result->rc_user, $result->rc_user_text ) . ' ' . |
329 | | - $this->skin->userToolLinks( $result->rc_user, $result->rc_user_text ); |
330 | | - $comment = $this->skin->commentBlock( $result->rc_comment ); |
331 | | - |
| 337 | + |
| 338 | + $ulink = $this->skin->revUserTools( $rev ); |
| 339 | + $comment = $this->skin->revComment( $rev ); |
| 340 | + |
332 | 341 | if ( $this->patrollable( $result ) ) { |
333 | 342 | $classes[] = 'not-patrolled'; |
334 | 343 | } |
— | — | @@ -507,7 +516,7 @@ |
508 | 517 | 'fields' => array( |
509 | 518 | 'rc_namespace', 'rc_title', 'rc_cur_id', 'rc_user', |
510 | 519 | 'rc_user_text', 'rc_comment', 'rc_timestamp', 'rc_patrolled', |
511 | | - 'rc_id', 'page_len AS length', 'page_latest AS rev_id', |
| 520 | + 'rc_id', 'rc_deleted', 'page_len AS length', 'page_latest AS rev_id', |
512 | 521 | 'ts_tags' |
513 | 522 | ), |
514 | 523 | 'conds' => $conds, |