Index: trunk/extensions/FlaggedRevs/presentation/RejectConfirmationFormUI.php |
— | — | @@ -64,10 +64,9 @@ |
65 | 65 | $form .= wfMsgExt( 'revreview-reject-text-list', 'parseinline', |
66 | 66 | $wgLang->formatNum( count( $rejectIds ) ), $oldRev->getTitle()->getPrefixedText() ); |
67 | 67 | $form .= '<ul>'; |
68 | | - // FIXME: we need a generic revision list class...this is bullshit |
69 | | - $spRevDelete = SpecialPage::getPage( 'RevisionReview' ); |
70 | | - $spRevDelete->skin = $this->form->getUser()->getSkin(); // XXX |
71 | | - $list = new RevDel_RevisionList( $spRevDelete, $oldRev->getTitle(), $rejectIds ); |
| 68 | + |
| 69 | + $context = RequestContext::getMain(); |
| 70 | + $list = new RevisionList( $context, $oldRev->getTitle(), $rejectIds ); |
72 | 71 | for ( $list->reset(); $list->current(); $list->next() ) { |
73 | 72 | $item = $list->current(); |
74 | 73 | if ( $item->canView() ) { |