Index: trunk/extensions/GlobalBlocking/GlobalBlocking.class.php |
— | — | @@ -36,6 +36,8 @@ |
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
| 40 | + * @param $user User |
| 41 | + * @param $ip |
40 | 42 | * @return Array: empty or a message key with parameters |
41 | 43 | */ |
42 | 44 | static function getUserBlockErrors( $user, $ip ) { |
Index: trunk/extensions/GlobalBlocking/globalblocking.sql |
— | — | @@ -9,7 +9,7 @@ |
10 | 10 | gb_expiry varbinary(14) NOT NULL default '', |
11 | 11 | gb_range_start varbinary(32) NOT NULL, -- Needs 32, not 8 for IPv6 support |
12 | 12 | gb_range_end varbinary(32) NOT NULL, |
13 | | - |
| 13 | + |
14 | 14 | PRIMARY KEY gb_id (gb_id), |
15 | 15 | |
16 | 16 | UNIQUE INDEX gb_address (gb_address, gb_anon_only), |
Index: trunk/extensions/GlobalBlocking/localdb_patches/setup-global_block_whitelist.sql |
— | — | @@ -4,10 +4,10 @@ |
5 | 5 | CREATE TABLE /*$wgDBprefix*/global_block_whitelist ( |
6 | 6 | gbw_id int(11) NOT NULL, -- Key to gb_id in globalblocks database. |
7 | 7 | gbw_address varbinary(255) NOT NULL, |
8 | | - gbw_by int(11) NOT NULL, -- Key to user_id |
| 8 | + gbw_by int(11) NOT NULL, -- Key to user_id |
9 | 9 | gbw_by_text varchar(255) NOT NULL, |
10 | 10 | gbw_reason varchar(255) NOT NULL, |
11 | 11 | gbw_expiry binary(14) NOT NULL, |
12 | 12 | PRIMARY KEY (gbw_id), |
13 | 13 | KEY (gbw_by) |
14 | | -) /*$wgDBTableOptions*/; |
\ No newline at end of file |
| 14 | +) /*$wgDBTableOptions*/; |