r12989 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12988‎ | r12989 | r12990 >
Date:17:46, 9 February 2006
Author:vibber
Status:old
Tags:
Comment:
Log trigger when all-edits mode is enabled.
Modified paths:
  • /trunk/extensions/ConfirmEdit/ConfirmEdit.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ConfirmEdit/ConfirmEdit.php
@@ -245,6 +245,10 @@
246246 global $wgCaptchaTriggers;
247247 if( !empty( $wgCaptchaTriggers['edit'] ) ) {
248248 // Check on all edits
 249+ global $wgUser, $wgTitle;
 250+ $this->trigger = sprintf( "edit trigger by '%s' at [[%s]]",
 251+ $wgUser->getName(),
 252+ $wgTitle->getPrefixedText() );
249253 wfDebug( "ConfirmEdit: checking all edits...\n" );
250254 return true;
251255 }

Status & tagging log