r22683 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22682‎ | r22683 | r22684 >
Date:18:42, 3 June 2007
Author:aaron
Status:old
Tags:
Comment:
*Use $wgRCMaxAge to avoid flooding page with too many entries
Modified paths:
  • /trunk/extensions/Oversight/HideRevision.i18n.php (modified) (history)
  • /trunk/extensions/Oversight/HideRevision.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Oversight/HideRevision.i18n.php
@@ -48,7 +48,7 @@
4949 'oversight-difference' => '(Difference from previous remaining revision)',
5050 'oversight-prev' => 'Last previous revision',
5151 'oversight-hidden' => 'Hidden revision',
52 -'oversight-header' => 'Below is a list of revisions permanently hidden from public view.
 52+'oversight-header' => 'Below is a list of revisions recently permanently hidden from public view.
5353 Releasing this information can result in permanent loss of Oversight privileges.',
5454 ),
5555
Index: trunk/extensions/Oversight/HideRevision.php
@@ -487,12 +487,12 @@
488488 * Special page handler function for Special:Oversight
489489 */
490490 function wfSpecialOversight( $par=null ) {
491 - global $wgRequest, $wgUser;
 491+ global $wgRequest, $wgUser, $wgRCMaxAge;
492492 $revision = $wgRequest->getIntOrNull( 'revision' );
493493 if ( $wgRequest->getCheck( 'diff' ) && !is_null( $revision )) {
494494 sosShowDiff( $revision);
495495 } else if( is_null( $revision ) ) {
496 - sosShowList();
 496+ sosShowList( $wgRCMaxAge );
497497 } else {
498498 sosShowRevision( $revision );
499499 }
@@ -503,7 +503,7 @@
504504
505505 $fromTime = $dbr->timestamp( $from );
506506 $result = sosGetRevisions( $dbr,
507 - array( 'hidden_on_timestamp < ' . $dbr->addQuotes( $fromTime ) ) );
 507+ array( 'hidden_on_timestamp >= ' . $dbr->addQuotes( $fromTime ) ) );
508508
509509 global $wgOut;
510510 $wgOut->addWikiText( wfMsgNoTrans( 'oversight-header' ) );

Status & tagging log