r104173 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104172‎ | r104173 | r104174 >
Date:15:45, 24 November 2011
Author:reedy
Status:ok
Tags:
Comment:
Fix protected member variable access
Modified paths:
  • /trunk/extensions/Oversight/HideRevision_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Oversight/HideRevision_body.php
@@ -381,7 +381,7 @@
382382 'hidden_user_text' => $rev->getRawUserText(),
383383 'hidden_timestamp' => $dbw->timestamp( $rev->getTimestamp() ),
384384 'hidden_minor_edit' => $rev->isMinor() ? 1 : 0,
385 - 'hidden_deleted' => $rev->mDeleted, // FIXME: private field access
 385+ 'hidden_deleted' => $rev->getVisibility(),
386386
387387 'hidden_by_user' => $wgUser->getId(),
388388 'hidden_on_timestamp' => $dbw->timestamp(),

Status & tagging log