mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-11-15 10:17:49 +00:00
17d3a9e313
Bug: T110469 Change-Id: I9690d2fe6b172fcc85e1a8f7f91af21c6422d870 Depends-On: I8b52ec8ddf494f23941807638f149f15b5e46b0c
23 lines
539 B
PHP
23 lines
539 B
PHP
<?php
|
|
|
|
use MediaWiki\Auth\AuthenticationRequest;
|
|
|
|
/**
|
|
* An authentication request that allows users with sufficiently high privileges to skip the
|
|
* title blacklist check.
|
|
*/
|
|
class TitleBlacklistAuthenticationRequest extends AuthenticationRequest {
|
|
public $ignoreTitleBlacklist;
|
|
|
|
public function getFieldInfo() {
|
|
return [
|
|
'ignoreTitleBlacklist' => [
|
|
'type' => 'checkbox',
|
|
'label' => wfMessage( 'titleblacklist-override' ),
|
|
'help' => wfMessage( 'titleblacklist-override-help' ),
|
|
'optional' => true,
|
|
],
|
|
];
|
|
}
|
|
}
|