From: Reedy Date: Wed, 29 Nov 2017 00:21:59 +0000 (+0000) Subject: Fix undefined $db X-Git-Tag: 1.31.0-rc.0~1375^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=51fb1e29a0276bee59c57715d1a998c87593ee67 Fix undefined $db Bug: T181565 Change-Id: I286374d4ca0ab9435d7d54c4f8b9660a60e5f1e3 --- 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; } }