From 816c6be38dfa6853122a81f4388319d507dc5629 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 2 Sep 2009 21:46:21 +0000 Subject: [PATCH] * Fix for r55741 - selecting no revisions made PHP notices * Some unrelated cleanups to old code --- includes/specials/SpecialRevisiondelete.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/specials/SpecialRevisiondelete.php b/includes/specials/SpecialRevisiondelete.php index 917a16657d..05cef05c52 100644 --- a/includes/specials/SpecialRevisiondelete.php +++ b/includes/specials/SpecialRevisiondelete.php @@ -113,7 +113,7 @@ class SpecialRevisionDelete extends UnlistedSpecialPage { $this->ids = explode( ',', $ids ); } else { # Array input - $this->ids = array_keys( $wgRequest->getArray( 'ids' ) ); + $this->ids = array_keys( $wgRequest->getArray('ids',array()) ); } $this->ids = array_map( 'intval', $this->ids ); $this->ids = array_unique( array_filter( $this->ids ) ); @@ -1325,8 +1325,7 @@ class RevDel_FileItem extends RevDel_Item { } public function getBits() { - /** FIXME: use accessor */ - return $this->file->deleted; + return $this->file->getVisibility(); } public function setBits( $bits ) { @@ -1511,7 +1510,8 @@ class RevDel_ArchivedFileItem extends RevDel_FileItem { 'target' => $this->list->title->getPrefixedText(), 'file' => $key, 'token' => $wgUser->editToken( $key ) - ) ); + ) + ); } } @@ -1614,8 +1614,8 @@ class RevDel_LogItem extends RevDel_Item { $action = '' . $action . ''; } // User links - $userLink = $this->special->skin->userLink( - $this->row->log_user, User::WhoIs( $this->row->log_user ) ); + $userLink = $this->special->skin->userLink( $this->row->log_user, + User::WhoIs( $this->row->log_user ) ); if( LogEventsList::isDeleted($this->row,LogPage::DELETED_USER) ) { $userLink = '' . $userLink . ''; } -- 2.20.1