mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-27 17:40:11 +00:00
Log trigger when all-edits mode is enabled.
This commit is contained in:
parent
cfd970a513
commit
0ca24a388f
|
@ -245,6 +245,10 @@ class SimpleCaptcha {
|
|||
global $wgCaptchaTriggers;
|
||||
if( !empty( $wgCaptchaTriggers['edit'] ) ) {
|
||||
// Check on all edits
|
||||
global $wgUser, $wgTitle;
|
||||
$this->trigger = sprintf( "edit trigger by '%s' at [[%s]]",
|
||||
$wgUser->getName(),
|
||||
$wgTitle->getPrefixedText() );
|
||||
wfDebug( "ConfirmEdit: checking all edits...\n" );
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue