r67656 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67655‎ | r67656 | r67657 >
Date:18:29, 8 June 2010
Author:catrope
Status:deferred
Tags:
Comment:
ClickTracking: Add reference to updater added in r67551 so it gets picked up by update.php . Also make ClickTracking API module uncacheable
Modified paths:
  • /trunk/extensions/UsabilityInitiative/ClickTracking/ApiClickTracking.php (modified) (history)
  • /trunk/extensions/UsabilityInitiative/ClickTracking/ClickTracking.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/ClickTracking/ClickTracking.hooks.php
@@ -15,7 +15,7 @@
1616
1717 /* 3 tables for click tracking */
1818 public static function schema() {
19 - global $wgExtNewTables, $wgExtNewIndexes;
 19+ global $wgExtNewTables, $wgExtNewIndexes, $wgExtNewFields;
2020
2121 $wgExtNewTables[] = array(
2222 'click_tracking',
@@ -31,6 +31,11 @@
3232 'click_tracking', 'click_tracking_action_time',
3333 dirname( __FILE__ ) . '/patch-action_time.sql'
3434 );
 35+
 36+ $wgExtNewFields[] = array(
 37+ 'click_tracking', 'additional_info',
 38+ dirname( __FILE__ ) . '/patch-additional_info.sql'
 39+ );
3540
3641 return true;
3742 }
Index: trunk/extensions/UsabilityInitiative/ClickTracking/ApiClickTracking.php
@@ -73,6 +73,7 @@
7474 $this->dieUsage( 'The URL to redirect to must be domain-relative, i.e. start with a /', 'badurl' );
7575 }
7676 }
 77+ $this->getMain()->setCacheMaxAge( 0 );
7778 }
7879
7980 /**

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r67551Updated click tracking so individual actions can hold information like state ...nimishg18:42, 7 June 2010

Status & tagging log