mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-11-14 19:31:29 +00:00
Merge "Use WebRequest::getIntOrNull and avoid ctype_digit"
This commit is contained in:
commit
ef0a197e58
|
@ -72,8 +72,7 @@ class SpecialNuke extends SpecialPage {
|
|||
$reason = $this->getDeleteReason( $this->getRequest(), $target );
|
||||
|
||||
$limit = $req->getInt( 'limit', 500 );
|
||||
$namespace = $req->getRawVal( 'namespace' );
|
||||
$namespace = ctype_digit( $namespace ) ? (int)$namespace : null;
|
||||
$namespace = $req->getIntOrNull( 'namespace' );
|
||||
|
||||
if ( $req->wasPosted()
|
||||
&& $currentUser->matchEditToken( $req->getVal( 'wpEditToken' ) )
|
||||
|
|
Loading…
Reference in a new issue