r56106 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56105‎ | r56106 | r56107 >
Date:18:09, 9 September 2009
Author:nimishg
Status:deferred
Tags:
Comment:
Allow fully disabling clicktracking by setting throttle to a negative number
Modified paths:
  • /trunk/extensions/UsabilityInitiative/ClickTracking/ClickTracking.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/ClickTracking/ClickTracking.hooks.php
@@ -42,7 +42,7 @@
4343 */
4444 public static function isUserThrottled(){
4545 global $wgClickTrackThrottle;
46 - if(rand() % $wgClickTrackThrottle == 0){
 46+ if( ( $wgClickTrackThrottle >= 0 ) && ( rand() % $wgClickTrackThrottle == 0 ) ){
4747 return 'false';
4848 }
4949 else {

Status & tagging log