From 51fb1e29a0276bee59c57715d1a998c87593ee67 Mon Sep 17 00:00:00 2001 From: Reedy Date: Wed, 29 Nov 2017 00:21:59 +0000 Subject: [PATCH] Fix undefined $db Bug: T181565 Change-Id: I286374d4ca0ab9435d7d54c4f8b9660a60e5f1e3 --- includes/logging/LogPager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/logging/LogPager.php b/includes/logging/LogPager.php index 05e55de75d..5404f35fce 100644 --- a/includes/logging/LogPager.php +++ b/includes/logging/LogPager.php @@ -441,9 +441,9 @@ class LogPager extends ReverseChronologicalPager { $this->performerRestrictionsEnforced = true; $user = $this->getUser(); if ( !$user->isAllowed( 'deletedhistory' ) ) { - $this->mConds[] = $db->bitAnd( 'log_deleted', LogPage::DELETED_ACTION ) . ' = 0'; + $this->mConds[] = $this->mDb->bitAnd( 'log_deleted', LogPage::DELETED_ACTION ) . ' = 0'; } elseif ( !$user->isAllowedAny( 'suppressrevision', 'viewsuppressed' ) ) { - $this->mConds[] = $db->bitAnd( 'log_deleted', LogPage::SUPPRESSED_ACTION ) . + $this->mConds[] = $this->mDb->bitAnd( 'log_deleted', LogPage::SUPPRESSED_ACTION ) . ' != ' . LogPage::SUPPRESSED_ACTION; } } -- 2.20.1