Skip to content

Commit ba789e9

Browse files
committed
remove deprecations
1 parent c87b906 commit ba789e9

6 files changed

Lines changed: 6 additions & 6 deletions

files/lib/system/discord/type/BotMultiSelectType.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function getFormElement($value)
2222
'value' => !\is_array($value) ? \explode("\n", $value) : $value,
2323
]);
2424

25-
return WCF::getTPL()->fetch('discordBotMultiSelectOptionType');
25+
return WCF::getTPL()->render('wcf', 'discordBotMultiSelectOptionType', []);
2626
}
2727

2828
public function validate($newValue)

files/lib/system/discord/type/ChannelMultiSelectDiscordType.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function getFormElement($value, $channelTypes = [])
6868
'channelTypes' => $channelTypes,
6969
]);
7070

71-
return WCF::getTPL()->fetch('discordChannelMultiSelect');
71+
return WCF::getTPL()->render('wcf', 'discordChannelMultiSelect', []);
7272
}
7373

7474
public function validate($newValue)

files/lib/system/discord/type/ChannelSelectDiscordType.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function getFormElement($value, $channelTypes = [])
7070
'channelTypes' => $channelTypes,
7171
]);
7272

73-
return WCF::getTPL()->fetch('discordChannelSelectOptionType');
73+
return WCF::getTPL()->render('wcf', 'discordChannelSelectOptionType', []);
7474
}
7575

7676
public function validate($newValue, ?int $maxChannels = null)

files/lib/system/discord/type/EmbedColorType.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public function getFormElement($value)
1212
{
1313
$value = $this->generateRgbaByDec($value);
1414

15-
return WCF::getTPL()->fetch('discordEmbedColorOptionType', 'wcf', [
15+
return WCF::getTPL()->render('wcf', 'discordEmbedColorOptionType', [
1616
'optionName' => $this->optionName,
1717
'value' => $value,
1818
]);

files/lib/system/discord/type/RoleMultiSelectDiscordType.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function getFormElement($value)
5858
'value' => $realValue,
5959
]);
6060

61-
return WCF::getTPL()->fetch('discordRoleMultiSelect');
61+
return WCF::getTPL()->render('wcf', 'discordRoleMultiSelect', []);
6262
}
6363

6464
public function validate($newValue)

files/lib/system/option/DiscordBotSelectOptionType.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function getFormElement(Option $option, $value)
3232
'value' => $value,
3333
]);
3434

35-
return WCF::getTPL()->fetch('discordBotSelectOptionType');
35+
return WCF::getTPL()->render('wcf', 'discordBotSelectOptionType', []);
3636
}
3737

3838
#[Override]

0 commit comments

Comments
 (0)