Use isDeleted() instead of raw bitfield op
authorAaron Schulz <aaron@users.mediawiki.org>
Fri, 13 Nov 2009 21:36:05 +0000 (21:36 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Fri, 13 Nov 2009 21:36:05 +0000 (21:36 +0000)
includes/specials/SpecialContributions.php

index ec21c9c..1e52cb5 100644 (file)
@@ -643,7 +643,7 @@ class ContribsPager extends ReverseChronologicalPager {
                $ret = "{$del}{$d} {$histlink}{$difftext} {$nflag}{$mflag} {$link}{$userlink} {$comment} {$topmarktext}";
                
                # Denote if username is redacted for this edit
-               if( $rev->getVisibility() & Revision::DELETED_USER ) {
+               if( $rev->isDeleted( Revision::DELETED_USER ) ) {
                        $ret .= " <strong>" . wfMsgHtml('rev-deleted-user') . "</strong>";
                }