@@ 505-519 (lines=15) @@ | ||
502 | } |
|
503 | ||
504 | /* Add edit summary / log summary. */ |
|
505 | if ( $this->fld_comment || $this->fld_parsedcomment ) { |
|
506 | if ( $row->rc_deleted & Revision::DELETED_COMMENT ) { |
|
507 | $vals['commenthidden'] = true; |
|
508 | $anyHidden = true; |
|
509 | } |
|
510 | if ( Revision::userCanBitfield( $row->rc_deleted, Revision::DELETED_COMMENT, $user ) ) { |
|
511 | if ( $this->fld_comment && isset( $row->rc_comment ) ) { |
|
512 | $vals['comment'] = $row->rc_comment; |
|
513 | } |
|
514 | ||
515 | if ( $this->fld_parsedcomment && isset( $row->rc_comment ) ) { |
|
516 | $vals['parsedcomment'] = Linker::formatComment( $row->rc_comment, $title ); |
|
517 | } |
|
518 | } |
|
519 | } |
|
520 | ||
521 | if ( $this->fld_redirect ) { |
|
522 | $vals['redirect'] = (bool)$row->page_is_redirect; |
@@ 395-415 (lines=21) @@ | ||
392 | $vals['top'] = $row->page_latest == $row->rev_id; |
|
393 | } |
|
394 | ||
395 | if ( ( $this->fld_comment || $this->fld_parsedcomment ) && isset( $row->rev_comment ) ) { |
|
396 | if ( $row->rev_deleted & Revision::DELETED_COMMENT ) { |
|
397 | $vals['commenthidden'] = true; |
|
398 | $anyHidden = true; |
|
399 | } |
|
400 | ||
401 | $userCanView = Revision::userCanBitfield( |
|
402 | $row->rev_deleted, |
|
403 | Revision::DELETED_COMMENT, $this->getUser() |
|
404 | ); |
|
405 | ||
406 | if ( $userCanView ) { |
|
407 | if ( $this->fld_comment ) { |
|
408 | $vals['comment'] = $row->rev_comment; |
|
409 | } |
|
410 | ||
411 | if ( $this->fld_parsedcomment ) { |
|
412 | $vals['parsedcomment'] = Linker::formatComment( $row->rev_comment, $title ); |
|
413 | } |
|
414 | } |
|
415 | } |
|
416 | ||
417 | if ( $this->fld_patrolled ) { |
|
418 | $vals['patrolled'] = (bool)$row->rc_patrolled; |