Index: trunk/phase3/includes/specials/SpecialRevisiondelete.php |
— | — | @@ -113,7 +113,7 @@ |
114 | 114 | $this->ids = explode( ',', $ids ); |
115 | 115 | } else { |
116 | 116 | # Array input |
117 | | - $this->ids = array_keys( $wgRequest->getArray( 'ids' ) ); |
| 117 | + $this->ids = array_keys( $wgRequest->getArray('ids',array()) ); |
118 | 118 | } |
119 | 119 | $this->ids = array_map( 'intval', $this->ids ); |
120 | 120 | $this->ids = array_unique( array_filter( $this->ids ) ); |
— | — | @@ -1325,8 +1325,7 @@ |
1326 | 1326 | } |
1327 | 1327 | |
1328 | 1328 | public function getBits() { |
1329 | | - /** FIXME: use accessor */ |
1330 | | - return $this->file->deleted; |
| 1329 | + return $this->file->getVisibility(); |
1331 | 1330 | } |
1332 | 1331 | |
1333 | 1332 | public function setBits( $bits ) { |
— | — | @@ -1511,7 +1510,8 @@ |
1512 | 1511 | 'target' => $this->list->title->getPrefixedText(), |
1513 | 1512 | 'file' => $key, |
1514 | 1513 | 'token' => $wgUser->editToken( $key ) |
1515 | | - ) ); |
| 1514 | + ) |
| 1515 | + ); |
1516 | 1516 | } |
1517 | 1517 | } |
1518 | 1518 | |
— | — | @@ -1614,8 +1614,8 @@ |
1615 | 1615 | $action = '<span class="history-deleted">' . $action . '</span>'; |
1616 | 1616 | } |
1617 | 1617 | // User links |
1618 | | - $userLink = $this->special->skin->userLink( |
1619 | | - $this->row->log_user, User::WhoIs( $this->row->log_user ) ); |
| 1618 | + $userLink = $this->special->skin->userLink( $this->row->log_user, |
| 1619 | + User::WhoIs( $this->row->log_user ) ); |
1620 | 1620 | if( LogEventsList::isDeleted($this->row,LogPage::DELETED_USER) ) { |
1621 | 1621 | $userLink = '<span class="history-deleted">' . $userLink . '</span>'; |
1622 | 1622 | } |