/** * Set the log_action field to a specified value (or values) * * @param string $action */ private function limitAction($action) { global $wgActionFilteredLogs; // Allow to filter the log by actions $type = $this->typeCGI; if ($type === '') { // nothing to do return; } $actions = $wgActionFilteredLogs; if (isset($actions[$type])) { // log type can be filtered by actions $this->mLogEventsList->setAllowedActions(array_keys($actions[$type])); if ($action !== '' && isset($actions[$type][$action])) { // add condition to query $this->mConds['log_action'] = $actions[$type][$action]; $this->action = $action; } } }