r59029 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r59028‎ | r59029 | r59030 >
Date:21:36, 13 November 2009
Author:aaron
Status:ok
Tags:
Comment:
Use isDeleted() instead of raw bitfield op
Modified paths:
  • /trunk/phase3/includes/specials/SpecialContributions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialContributions.php
@@ -643,7 +643,7 @@
644644 $ret = "{$del}{$d} {$histlink}{$difftext} {$nflag}{$mflag} {$link}{$userlink} {$comment} {$topmarktext}";
645645
646646 # Denote if username is redacted for this edit
647 - if( $rev->getVisibility() & Revision::DELETED_USER ) {
 647+ if( $rev->isDeleted( Revision::DELETED_USER ) ) {
648648 $ret .= " <strong>" . wfMsgHtml('rev-deleted-user') . "</strong>";
649649 }
650650

Status & tagging log