Index: branches/pageoutput/includes/specials/SpecialHistory.php |
— | — | @@ -35,12 +35,8 @@ |
36 | 36 | function execute( $par ) { |
37 | 37 | $title = Title::newFromText( $par ); |
38 | 38 | if ( $title ) { |
39 | | - // @fixme Instead of this create a method to create a RequestContext based on another |
40 | | - $context = new RequestContext; |
| 39 | + $context = new DerivativeContext( $this->getContext() ); |
41 | 40 | $context->setTitle( $title ); |
42 | | - $context->setUser( $this->getUser() ); |
43 | | - $context->setRequest( new FauxRequest( array() ) ); |
44 | | - $context->setOutput( $this->getOutput() ); |
45 | 41 | $history = new HistoryPage( $context ); |
46 | 42 | $history->history(); |
47 | 43 | } |