Merge "logging: Combine log types in one database condition on LogPager"
This commit is contained in:
commit
e8e74a7a12
1 changed files with 5 additions and 1 deletions
|
|
@ -145,11 +145,15 @@ class LogPager extends ReverseChronologicalPager {
|
|||
return;
|
||||
}
|
||||
$filterTypes = $this->getFilterParams();
|
||||
$excludeTypes = [];
|
||||
foreach ( $filterTypes as $type => $hide ) {
|
||||
if ( $hide ) {
|
||||
$this->mConds[] = 'log_type != ' . $this->mDb->addQuotes( $type );
|
||||
$excludeTypes[] = $type;
|
||||
}
|
||||
}
|
||||
if ( $excludeTypes ) {
|
||||
$this->mConds[] = $this->mDb->expr( 'log_type', '!=', $excludeTypes );
|
||||
}
|
||||
}
|
||||
|
||||
public function getFilterParams() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue