Index: trunk/extensions/ApprovedRevs/SpecialApprovedRevs.php |
— | — | @@ -26,7 +26,11 @@ |
27 | 27 | list( $limit, $offset ) = wfCheckLimits(); |
28 | 28 | $mode = $wgRequest->getVal( 'show' ); |
29 | 29 | $rep = new SpecialApprovedRevsPage( $mode ); |
30 | | - return $rep->doQuery( $offset, $limit ); |
| 30 | + if ( method_exists( $rep, 'execute' ) ) { |
| 31 | + return $rep->execute( $query ); |
| 32 | + } else { |
| 33 | + return $rep->doQuery( $offset, $limit ); |
| 34 | + } |
31 | 35 | } |
32 | 36 | } |
33 | 37 | |
— | — | @@ -34,6 +38,7 @@ |
35 | 39 | private $mMode; |
36 | 40 | |
37 | 41 | public function __construct( $mode ) { |
| 42 | + parent::__construct( 'ApprovedRevs' ); |
38 | 43 | $this->mMode = $mode; |
39 | 44 | } |
40 | 45 | |