Manual:$wgDisableQueryPages

Details
Disable all query pages if $wgMiserMode is on, not just some.