From 15863d5b2d3e528efe42f1b4fcc19b8f1430fedf Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 1 Apr 2008 22:50:53 +0000 Subject: [PATCH] Use 'suppress' right rather than 'oversight' --- includes/Article.php | 2 +- includes/SpecialBlockip.php | 2 +- includes/SpecialIpblocklist.php | 2 +- includes/SpecialRevisiondelete.php | 6 +++--- includes/SpecialUndelete.php | 4 ++-- includes/api/ApiQueryBlocks.php | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 4552b81f67..1fb6c2b275 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -2300,7 +2300,7 @@ class Article { Article::onArticleDelete( $this->mTitle ); # Log the deletion, if the page was suppressed, log it at Oversight instead - $logtype = $suppress ? 'oversight' : 'delete'; + $logtype = $suppress ? 'suppress' : 'delete'; $log = new LogPage( $logtype ); $log->addEntry( 'delete', $this->mTitle, $reason ); diff --git a/includes/SpecialBlockip.php b/includes/SpecialBlockip.php index 32bc430fc7..e3b828e5c5 100644 --- a/includes/SpecialBlockip.php +++ b/includes/SpecialBlockip.php @@ -359,7 +359,7 @@ class IPBlockForm { $logParams[] = $this->blockLogFlags(); # Make log entry, if the name is hidden, put it in the oversight log - $log_type = ($this->BlockHideName) ? 'oversight' : 'block'; + $log_type = ($this->BlockHideName) ? 'suppress' : 'block'; $log = new LogPage( $log_type ); $log->addEntry( 'block', Title::makeTitle( NS_USER, $this->BlockAddress ), $reasonstr, $logParams ); diff --git a/includes/SpecialIpblocklist.php b/includes/SpecialIpblocklist.php index 5abb6bb711..7121fb9801 100644 --- a/includes/SpecialIpblocklist.php +++ b/includes/SpecialIpblocklist.php @@ -236,7 +236,7 @@ class IPUnblockForm { $conds = array(); $matches = array(); // Is user allowed to see all the blocks? - if ( !$wgUser->isAllowed( 'oversight' ) ) + if ( !$wgUser->isAllowed( 'suppress' ) ) $conds['ipb_deleted'] = 0; if ( $this->ip == '' ) { // No extra conditions diff --git a/includes/SpecialRevisiondelete.php b/includes/SpecialRevisiondelete.php index 19cbba504a..70cf53bff5 100644 --- a/includes/SpecialRevisiondelete.php +++ b/includes/SpecialRevisiondelete.php @@ -455,7 +455,7 @@ class RevisionDeleteForm { } foreach( $this->events as $logid ) { // Don't hide from oversight log!!! - if( !isset( $logRows[$logid] ) || $logRows[$logid]->log_type=='oversight' ) { + if( !isset( $logRows[$logid] ) || $logRows[$logid]->log_type=='suppress' ) { $wgOut->showErrorPage( 'revdelete-nooldid-title', 'revdelete-nooldid-text' ); return; } else if( !LogPage::userCan( $logRows[$logid],Revision::DELETED_RESTRICTED) ) { @@ -1071,7 +1071,7 @@ class RevisionDeleter { $success = false; continue; // Must exist } else if( !LogPage::userCan($logRows[$logid], Revision::DELETED_RESTRICTED) - || $logRows[$logid]->log_type=='oversight' ) { + || $logRows[$logid]->log_type == 'suppress' ) { // Don't hide from oversight log!!! $userAllowedAll=false; continue; @@ -1334,7 +1334,7 @@ class RevisionDeleter { */ function updateLog( $title, $count, $nbitfield, $obitfield, $comment, $target, $param, $items = array() ) { // Put things hidden from sysops in the oversight log - $logtype = ( ($nbitfield | $obitfield) & Revision::DELETED_RESTRICTED ) ? 'oversight' : 'delete'; + $logtype = ( ($nbitfield | $obitfield) & Revision::DELETED_RESTRICTED ) ? 'suppress' : 'delete'; $log = new LogPage( $logtype ); // FIXME: do this better if( $param=='logid' ) { diff --git a/includes/SpecialUndelete.php b/includes/SpecialUndelete.php index 2f56ae88a5..ef7944b5aa 100644 --- a/includes/SpecialUndelete.php +++ b/includes/SpecialUndelete.php @@ -587,7 +587,7 @@ class UndeleteForm { $this->mPreview = $request->getCheck( 'preview' ) && $posted; $this->mDiff = $request->getCheck( 'diff' ); $this->mComment = $request->getText( 'wpComment' ); - $this->mUnsuppress = $request->getVal( 'wpUnsuppress' ) && $wgUser->isAllowed( 'oversight' ); + $this->mUnsuppress = $request->getVal( 'wpUnsuppress' ) && $wgUser->isAllowed( 'suppress' ); if( $par != "" ) { $this->mTarget = $par; @@ -972,7 +972,7 @@ class UndeleteForm { # Format the user-visible controls (comment field, submission button) # in a nice little table $align = $wgContLang->isRtl() ? 'left' : 'right'; - if( $wgUser->isAllowed( 'oversight' ) ) { + if( $wgUser->isAllowed( 'suppress' ) ) { $unsuppressBox = "   diff --git a/includes/api/ApiQueryBlocks.php b/includes/api/ApiQueryBlocks.php index 69da27c24d..ad13eb27e5 100644 --- a/includes/api/ApiQueryBlocks.php +++ b/includes/api/ApiQueryBlocks.php @@ -90,7 +90,7 @@ class ApiQueryBlocks extends ApiQueryBase { $this->addWhere(array('ipb_id' => $params['ids'])); if(isset($params['users'])) $this->addWhere(array('ipb_address' => $params['users'])); - if(!$wgUser->isAllowed('oversight')) + if(!$wgUser->isAllowed('suppress')) $this->addWhere(array('ipb_deleted' => 0)); // Purge expired entries on one in every 10 queries -- 2.20.1