mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-11-25 00:35:43 +00:00
Merge "Use WebRequest::getBool to have bool cast"
This commit is contained in:
commit
458857ae9b
|
@ -347,7 +347,7 @@ class OATHManage extends SpecialPage {
|
|||
}
|
||||
|
||||
private function shouldShowDisableWarning() {
|
||||
return (bool)$this->getRequest()->getVal( 'warn', false ) &&
|
||||
return $this->getRequest()->getBool( 'warn' ) &&
|
||||
$this->requestedModule instanceof IModule &&
|
||||
$this->getEnabled() instanceof IModule;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue