X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Flogging%2FLogPager.php;h=5404f35fced74064f932da7c8d031de558a3f5d9;hp=05e55de75dc9a3a400de38f52ce7ab281c9ae7c0;hb=51fb1e29a0276bee59c57715d1a998c87593ee67;hpb=afd5f1417efdd463d86186257c4ec77dd4a442ce;ds=sidebyside 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; } }