Log trigger when all-edits mode is enabled.
[toast/cookiecaptcha.git] / ConfirmEdit.php
index fdca7f4bbb6fb2f6d74659cc9fb99abc7239ae62..37bcae59159ffec1fdb55149baa347fb470478bf 100644 (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;
                }