Index: trunk/extensions/UsabilityInitiative/ClickTracking/ClickTracking.hooks.php |
— | — | @@ -15,7 +15,7 @@ |
16 | 16 | |
17 | 17 | /* 3 tables for click tracking */ |
18 | 18 | public static function schema() { |
19 | | - global $wgExtNewTables, $wgExtNewIndexes; |
| 19 | + global $wgExtNewTables, $wgExtNewIndexes, $wgExtNewFields; |
20 | 20 | |
21 | 21 | $wgExtNewTables[] = array( |
22 | 22 | 'click_tracking', |
— | — | @@ -31,6 +31,11 @@ |
32 | 32 | 'click_tracking', 'click_tracking_action_time', |
33 | 33 | dirname( __FILE__ ) . '/patch-action_time.sql' |
34 | 34 | ); |
| 35 | + |
| 36 | + $wgExtNewFields[] = array( |
| 37 | + 'click_tracking', 'additional_info', |
| 38 | + dirname( __FILE__ ) . '/patch-additional_info.sql' |
| 39 | + ); |
35 | 40 | |
36 | 41 | return true; |
37 | 42 | } |
Index: trunk/extensions/UsabilityInitiative/ClickTracking/ApiClickTracking.php |
— | — | @@ -73,6 +73,7 @@ |
74 | 74 | $this->dieUsage( 'The URL to redirect to must be domain-relative, i.e. start with a /', 'badurl' ); |
75 | 75 | } |
76 | 76 | } |
| 77 | + $this->getMain()->setCacheMaxAge( 0 ); |
77 | 78 | } |
78 | 79 | |
79 | 80 | /** |