Skip to content

Commit 7508317

Browse files
committed
WikiRepository: fix db query following removal of ipblocks view
Bug: T395976
1 parent a4577f2 commit 7508317

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Repository/WikiRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ public function getEditCounts( array $usernames ): array {
9595
*/
9696
public function isUserBlocked( string $username ): bool {
9797
$sql = "SELECT 1
98-
FROM {$this->getDb()}.ipblocks_ipindex
99-
WHERE ipb_address = :username
98+
FROM {$this->getDb()}.block_target_ipindex
99+
WHERE bt_user_text = :username
100100
LIMIT 1";
101101

102102
return (bool)$this->executeQuery( $sql, [ 'username' => $username ] )

0 commit comments

Comments
 (0)