private $target;
/**
- * Constructor
- *
* @param string $type One of '', 'block', 'protect', 'rights', 'delete',
* 'upload', 'move'
* @param bool $rc Whether to update recent changes as well as the logging table
'log_params' => $this->params
];
$dbw->insert( 'logging', $data, __METHOD__ );
- $newId = !is_null( $log_id ) ? $log_id : $dbw->insertId();
+ $newId = $dbw->insertId();
# And update recentchanges
if ( $this->updateRecentChanges ) {