mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-11-23 21:53:40 +00:00
d7cfbbcab2
Change-Id: I02d8eabfc0733a0d7556d7e6d4d6d787071b1da0
26 lines
604 B
PHP
26 lines
604 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\TitleBlacklist;
|
|
|
|
use MediaWiki\Auth\AuthenticationRequest;
|
|
|
|
/**
|
|
* An authentication request that allows users with sufficiently high privileges to skip the
|
|
* title blacklist check.
|
|
*/
|
|
class TitleBlacklistAuthenticationRequest extends AuthenticationRequest {
|
|
/** @var bool */
|
|
public $ignoreTitleBlacklist;
|
|
|
|
public function getFieldInfo() {
|
|
return [
|
|
'ignoreTitleBlacklist' => [
|
|
'type' => 'checkbox',
|
|
'label' => wfMessage( 'titleblacklist-override' ),
|
|
'help' => wfMessage( 'titleblacklist-override-help' ),
|
|
'optional' => true,
|
|
],
|
|
];
|
|
}
|
|
}
|