Index: trunk/phase3/maintenance/archives/patch-protected_titles.sql |
— | — | @@ -2,12 +2,12 @@ |
3 | 3 | CREATE TABLE /*$wgDBprefix*/protected_titles ( |
4 | 4 | pt_namespace int(11) NOT NULL, |
5 | 5 | pt_title varchar(255) NOT NULL, |
6 | | - pt_by int(10) unsigned NOT NULL, |
| 6 | + pt_user int(10) unsigned NOT NULL, |
7 | 7 | pt_reason tinyblob, |
8 | 8 | pt_timestamp binary(14) NOT NULL, |
9 | 9 | pt_expiry varbinary(14) NOT NULL default '', |
10 | 10 | pt_create_perm varbinary(60) NOT NULL, |
11 | 11 | PRIMARY KEY (pt_namespace,pt_title), |
12 | | - KEY `pt_by` (pt_by), |
| 12 | + |
13 | 13 | KEY pt_timestamp (pt_timestamp) |
14 | 14 | ) /*$wgDBTableOptions*/; |
\ No newline at end of file |
Index: trunk/phase3/includes/Title.php |
— | — | @@ -1206,7 +1206,7 @@ |
1207 | 1207 | $pt_create_perm = 'protect'; |
1208 | 1208 | |
1209 | 1209 | if ($pt_create_perm == '' || !$user->isAllowed($pt_create_perm)) { |
1210 | | - $errors[] = array ( 'titleprotected', User::whoIs($pt_by), $pt_reason ); |
| 1210 | + $errors[] = array ( 'titleprotected', User::whoIs($pt_user), $pt_reason ); |
1211 | 1211 | } |
1212 | 1212 | } |
1213 | 1213 | } |
— | — | @@ -1295,7 +1295,7 @@ |
1296 | 1296 | , 'pt_create_perm' => $create_perm |
1297 | 1297 | , 'pt_timestamp' => Block::encodeExpiry(wfTimestampNow(), $dbw) |
1298 | 1298 | , 'pt_expiry' => $encodedExpiry |
1299 | | - , 'pt_by' => $wgUser->getId(), 'pt_reason' => $reason ), __METHOD__ ); |
| 1299 | + , 'pt_user' => $wgUser->getId(), 'pt_reason' => $reason ), __METHOD__ ); |
1300 | 1300 | } else { |
1301 | 1301 | $dbw->delete( 'protected_titles', array( 'pt_namespace' => $namespace, |
1302 | 1302 | 'pt_title' => $title ), __METHOD__ ); |