/** The RevDel_List object, storing the list of items to be deleted/undeleted */
var $list;
- /** New bitfield value, used for form display post-submit */
- var $newBits;
-
/**
* Assorted information about each type, needed by the special page.
* TODO Move some of this to the list class
$wgOut->showErrorPage( 'revdelete-nooldid-title', 'revdelete-nooldid-text' );
return;
}
-
- if ( !is_null( $this->newBits ) ) {
- $bitfields = $this->newBits;
- }
$wgOut->addHTML( "</ul>" );
// Explanation text
global $wgOut;
$wgOut->setPagetitle( wfMsg( 'actioncomplete' ) );
$wgOut->wrapWikiMsg( '<span class="success">$1</span>', $this->typeInfo['success'] );
+ $this->list->reloadFromMaster();
$this->showForm();
}
if( $bitfield == Revision::DELETED_RESTRICTED ) {
return Status::newFatal( 'revdelete-only-restricted' );
}
- $this->newBits = $bitfield;
return $this->getList()->setVisibility( array(
'value' => $bitfield,
'comment' => $reason ) );
return $status;
}
+ /**
+ * Reload the list data from the master DB. This can be done after setVisibility()
+ * to allow $item->getHTML() to show the new data.
+ */
+ function reloadFromMaster() {
+ $dbw = wfGetDB( DB_MASTER );
+ $this->res = $this->doQuery( $dbw );
+ }
+
/**
* Record a log entry on the action
* @param $params Associative array of parameters: