Index: trunk/extensions/AntiSpoof/AntiSpoof.php |
— | — | @@ -27,6 +27,8 @@ |
28 | 28 | |
29 | 29 | $wgExtensionFunctions[] = 'asSetup'; |
30 | 30 | |
| 31 | +$wgHooks['LoadExtensionSchemaUpdates'][] = 'asUpdateSchema'; |
| 32 | + |
31 | 33 | function asSetup() { |
32 | 34 | $base = dirname( __FILE__ ); |
33 | 35 | |
— | — | @@ -45,6 +47,14 @@ |
46 | 48 | } |
47 | 49 | } |
48 | 50 | |
| 51 | +function asUpdateSchema() { |
| 52 | + global $wgExtNewTables; |
| 53 | + $wgExtNewTables[] = array( |
| 54 | + 'spoofuser', |
| 55 | + dirname( __FILE__ ) . '/mysql/patch-antispoof.sql' ); |
| 56 | + return true; |
| 57 | +} |
| 58 | + |
49 | 59 | /** |
50 | 60 | * Hook for user creation form submissions. |
51 | 61 | * @param User $u |