Log trigger when all-edits mode is enabled.

This commit is contained in:
Brion Vibber 2006-02-09 17:46:56 +00:00
parent cfd970a513
commit 0ca24a388f

View file

@ -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;
}