@@ 496-510 (lines=15) @@ | ||
493 | } |
|
494 | ||
495 | /* Add edit summary / log summary. */ |
|
496 | if ( $this->fld_comment || $this->fld_parsedcomment ) { |
|
497 | if ( $row->rc_deleted & Revision::DELETED_COMMENT ) { |
|
498 | $vals['commenthidden'] = true; |
|
499 | $anyHidden = true; |
|
500 | } |
|
501 | if ( Revision::userCanBitfield( $row->rc_deleted, Revision::DELETED_COMMENT, $user ) ) { |
|
502 | if ( $this->fld_comment && isset( $row->rc_comment ) ) { |
|
503 | $vals['comment'] = $row->rc_comment; |
|
504 | } |
|
505 | ||
506 | if ( $this->fld_parsedcomment && isset( $row->rc_comment ) ) { |
|
507 | $vals['parsedcomment'] = Linker::formatComment( $row->rc_comment, $title ); |
|
508 | } |
|
509 | } |
|
510 | } |
|
511 | ||
512 | if ( $this->fld_redirect ) { |
|
513 | $vals['redirect'] = (bool)$row->page_is_redirect; |
@@ 391-411 (lines=21) @@ | ||
388 | $vals['top'] = $row->page_latest == $row->rev_id; |
|
389 | } |
|
390 | ||
391 | if ( ( $this->fld_comment || $this->fld_parsedcomment ) && isset( $row->rev_comment ) ) { |
|
392 | if ( $row->rev_deleted & Revision::DELETED_COMMENT ) { |
|
393 | $vals['commenthidden'] = true; |
|
394 | $anyHidden = true; |
|
395 | } |
|
396 | ||
397 | $userCanView = Revision::userCanBitfield( |
|
398 | $row->rev_deleted, |
|
399 | Revision::DELETED_COMMENT, $this->getUser() |
|
400 | ); |
|
401 | ||
402 | if ( $userCanView ) { |
|
403 | if ( $this->fld_comment ) { |
|
404 | $vals['comment'] = $row->rev_comment; |
|
405 | } |
|
406 | ||
407 | if ( $this->fld_parsedcomment ) { |
|
408 | $vals['parsedcomment'] = Linker::formatComment( $row->rev_comment, $title ); |
|
409 | } |
|
410 | } |
|
411 | } |
|
412 | ||
413 | if ( $this->fld_patrolled ) { |
|
414 | $vals['patrolled'] = (bool)$row->rc_patrolled; |