- $params = array_filter(
- array_diff_key(
- $this->mParams + $this->getPageSet()->extractRequestParams(),
- [ 'rawcontinue' => 1, 'indexpageids' => 1 ]
- )
- );
- if ( array_keys( $params ) !== [ 'meta' ] ) {
- return true;
+ $request = $this->getRequest();
+ foreach ( $this->mParams + $this->getPageSet()->extractRequestParams() as $param => $value ) {
+ $needed = $param === 'meta';
+ if ( !isset( $allowedParams[$param] ) && $request->getCheck( $param ) !== $needed ) {
+ return true;
+ }