}
public function execute() {
- global $IP, $wgQueryPages, $wgQueryCacheLimit, $wgDisableQueryPageUpdate;
+ global $wgQueryCacheLimit, $wgDisableQueryPageUpdate;
$dbw = wfGetDB( DB_MASTER );
$this->doSpecialPageCacheUpdates( $dbw );
- // This is needed to initialise $wgQueryPages
- require_once "$IP/includes/QueryPage.php";
-
- foreach ( $wgQueryPages as $page ) {
+ foreach ( QueryPage::getPages() as $page ) {
list( $class, $special ) = $page;
$limit = isset( $page[2] ) ? $page[2] : null;