"Kaldari" posted a comment on MediaWiki.r112649.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/112649#c31602
Commit summary for MediaWiki.r112649:
fixing confusing module/file name - the existing ext module is a specific
campaign for tracking sidebar clicks. Also separating throttling logic from
module outputting logic in case people add some more modules and only want to
enable some of them.
Kaldari's comment:
+ if ( $wgClickTrackThrottle > 0 && rand() % $wgClickTrackThrottle == 0 ) {
This also avoids a potential divide by 0 error.
_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview