$pt_create_perm = 'protect';
if ($pt_create_perm == '' || !$user->isAllowed($pt_create_perm)) {
- $errors[] = array ( 'titleprotected', User::whoIs($pt_by), $pt_reason );
+ $errors[] = array ( 'titleprotected', User::whoIs($pt_user), $pt_reason );
}
}
}
, 'pt_create_perm' => $create_perm
, 'pt_timestamp' => Block::encodeExpiry(wfTimestampNow(), $dbw)
, 'pt_expiry' => $encodedExpiry
- , 'pt_by' => $wgUser->getId(), 'pt_reason' => $reason ), __METHOD__ );
+ , 'pt_user' => $wgUser->getId(), 'pt_reason' => $reason ), __METHOD__ );
} else {
$dbw->delete( 'protected_titles', array( 'pt_namespace' => $namespace,
'pt_title' => $title ), __METHOD__ );
CREATE TABLE /*$wgDBprefix*/protected_titles (
pt_namespace int(11) NOT NULL,
pt_title varchar(255) NOT NULL,
- pt_by int(10) unsigned NOT NULL,
+ pt_user int(10) unsigned NOT NULL,
pt_reason tinyblob,
pt_timestamp binary(14) NOT NULL,
pt_expiry varbinary(14) NOT NULL default '',
pt_create_perm varbinary(60) NOT NULL,
PRIMARY KEY (pt_namespace,pt_title),
- KEY `pt_by` (pt_by),
+
KEY pt_timestamp (pt_timestamp)
) /*$wgDBTableOptions*/;
\ No newline at end of file