if ( $userid ) {
$this->addWhereFld( 'log_user', $userid );
} else {
- $this->addWhereFld( 'log_user_text', IP::sanitizeIP( $user ) );
+ $this->addWhereFld( 'log_user_text', $user );
}
}
*/
private function getAllowedLogActions() {
$config = $this->getConfig();
- return array_keys( array_merge( $config->get( 'LogActions' ), $config->get( 'LogActionsHandlers' ) ) );
+ return array_keys( array_merge(
+ $config->get( 'LogActions' ),
+ $config->get( 'LogActionsHandlers' )
+ ) );
}
public function getCacheMode( $params ) {
'parsedcomment',
'details',
'tags'
- )
+ ),
+ ApiBase::PARAM_HELP_MSG_PER_VALUE => array(),
),
'type' => array(
ApiBase::PARAM_TYPE => $config->get( 'LogTypes' )
),
ApiBase::PARAM_HELP_MSG => 'api-help-param-direction',
),
- 'user' => null,
+ 'user' => array(
+ ApiBase::PARAM_TYPE => 'user',
+ ),
'title' => null,
'namespace' => array(
ApiBase::PARAM_TYPE => 'namespace'