Index: trunk/extensions/ClickTracking/ClickTracking.hooks.php |
— | — | @@ -69,10 +69,10 @@ |
70 | 70 | * @return Boolean: always true |
71 | 71 | */ |
72 | 72 | public static function beforePageDisplay( $out, $skin ) { |
73 | | - global $wgClickTrackThrottle; |
| 73 | + global $wgClickTrackSidebar, $wgClickTrackThrottle; |
74 | 74 | $out->addModules( 'ext.UserBuckets' ); |
75 | 75 | |
76 | | - if ( $wgClickTrackThrottle >= 0 && rand() % $wgClickTrackThrottle == 0 ) { |
| 76 | + if ( $wgClickTrackSidebar && $wgClickTrackThrottle >= 0 && rand() % $wgClickTrackThrottle == 0 ) { |
77 | 77 | $out->addModules( 'ext.clickTracking' ); |
78 | 78 | } |
79 | 79 | return true; |
Index: trunk/extensions/ClickTracking/ClickTracking.php |
— | — | @@ -31,6 +31,9 @@ |
32 | 32 | // Whether to log clicks to the database. If this is enabled and a log file is configured, events will be logged to both |
33 | 33 | $wgClickTrackingDatabase = true; |
34 | 34 | |
| 35 | +// If true, apply clicktracking to the links in the sidebar |
| 36 | +$wgClickTrackSidebar = false; |
| 37 | + |
35 | 38 | /* Setup */ |
36 | 39 | |
37 | 40 | $wgExtensionCredits['other'][] = array( |