*/
protected function getFormFields() {
global $wgBlockAllowsUTEdit;
- if ( !wfMessage( 'ipbreason-dropdown' )->inContentLanguage()->isDisabled() ) {
- $reasonsList = Xml::getArrayFromWikiTextList(
- wfMessage( 'ipbreason-dropdown' )->inContentLanguage()->text()
- );
- $this->getOutput()->addModules( 'mediawiki.reasonSuggest' );
- $this->getOutput()->addJsConfigVars( [
- 'reasons' => $reasonsList
- ] );
- }
+
$user = $this->getUser();
$suggestedDurations = self::getSuggestedDurations();
$blockIds = array_merge( [ $status['id'] ], $status['autoIds'] );
$logEntry->setRelations( [ 'ipb_id' => $blockIds ] );
$logId = $logEntry->insert();
+
+ if ( !empty( $data['Tags'] ) ) {
+ $logEntry->setTags( $data['Tags'] );
+ }
+
$logEntry->publish( $logId );
- # Report to the user
return true;
}