Index: trunk/phase3/includes/specials/SpecialRevisiondelete.php |
— | — | @@ -38,9 +38,6 @@ |
39 | 39 | /** The RevDel_List object, storing the list of items to be deleted/undeleted */ |
40 | 40 | var $list; |
41 | 41 | |
42 | | - /** New bitfield value, used for form display post-submit */ |
43 | | - var $newBits; |
44 | | - |
45 | 42 | /** |
46 | 43 | * Assorted information about each type, needed by the special page. |
47 | 44 | * TODO Move some of this to the list class |
— | — | @@ -325,10 +322,6 @@ |
326 | 323 | $wgOut->showErrorPage( 'revdelete-nooldid-title', 'revdelete-nooldid-text' ); |
327 | 324 | return; |
328 | 325 | } |
329 | | - |
330 | | - if ( !is_null( $this->newBits ) ) { |
331 | | - $bitfields = $this->newBits; |
332 | | - } |
333 | 326 | |
334 | 327 | $wgOut->addHTML( "</ul>" ); |
335 | 328 | // Explanation text |
— | — | @@ -422,6 +415,7 @@ |
423 | 416 | global $wgOut; |
424 | 417 | $wgOut->setPagetitle( wfMsg( 'actioncomplete' ) ); |
425 | 418 | $wgOut->wrapWikiMsg( '<span class="success">$1</span>', $this->typeInfo['success'] ); |
| 419 | + $this->list->reloadFromMaster(); |
426 | 420 | $this->showForm(); |
427 | 421 | } |
428 | 422 | |
— | — | @@ -459,7 +453,6 @@ |
460 | 454 | if( $bitfield == Revision::DELETED_RESTRICTED ) { |
461 | 455 | return Status::newFatal( 'revdelete-only-restricted' ); |
462 | 456 | } |
463 | | - $this->newBits = $bitfield; |
464 | 457 | return $this->getList()->setVisibility( array( |
465 | 458 | 'value' => $bitfield, |
466 | 459 | 'comment' => $reason ) ); |
— | — | @@ -713,6 +706,15 @@ |
714 | 707 | } |
715 | 708 | |
716 | 709 | /** |
| 710 | + * Reload the list data from the master DB. This can be done after setVisibility() |
| 711 | + * to allow $item->getHTML() to show the new data. |
| 712 | + */ |
| 713 | + function reloadFromMaster() { |
| 714 | + $dbw = wfGetDB( DB_MASTER ); |
| 715 | + $this->res = $this->doQuery( $dbw ); |
| 716 | + } |
| 717 | + |
| 718 | + /** |
717 | 719 | * Record a log entry on the action |
718 | 720 | * @param $params Associative array of parameters: |
719 | 721 | * newBits: The new value of the *_deleted bitfield |