mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-11-23 21:53:40 +00:00
3113e6bf5f
Change-Id: I7917483168a3534d74b62dd2077026c0baa4cbe0
25 lines
586 B
PHP
25 lines
586 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 {
|
|
public $ignoreTitleBlacklist;
|
|
|
|
public function getFieldInfo() {
|
|
return [
|
|
'ignoreTitleBlacklist' => [
|
|
'type' => 'checkbox',
|
|
'label' => wfMessage( 'titleblacklist-override' ),
|
|
'help' => wfMessage( 'titleblacklist-override-help' ),
|
|
'optional' => true,
|
|
],
|
|
];
|
|
}
|
|
}
|