mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-21 21:30:08 +00:00
Use random_int()
instead of microtime()
to generate temproom names
This fixes the deprecated implicit conversion from float to int on PHP 8+.
This commit is contained in:
parent
b0120e16c0
commit
95d7f4a961
@ -130,7 +130,7 @@
|
||||
<item name="chat.room.userList.away"><![CDATA[Abwesend{if $user.away}: {$user.away}{/if}]]></item>
|
||||
<item name="chat.room.userList.moderator"><![CDATA[Moderator]]></item>
|
||||
<item name="chat.room.userList.mute"><![CDATA[Stumm]]></item>
|
||||
<item name="chat.room.temporary.blueprint"><![CDATA[{assign var='microtime' value=true|microtime}Temproom#{$microtime*1000%1000} ({$user->username})]]></item>
|
||||
<item name="chat.room.temporary.blueprint"><![CDATA[{assign var='number' value=1000|random_int:9999}Temproom#{$number} ({$user->username})]]></item>
|
||||
</category>
|
||||
|
||||
<category name="chat.room.condition">
|
||||
|
@ -130,7 +130,7 @@
|
||||
<item name="chat.room.userList.away"><![CDATA[Away{if $user.away}: {$user.away}{/if}]]></item>
|
||||
<item name="chat.room.userList.moderator"><![CDATA[Moderator]]></item>
|
||||
<item name="chat.room.userList.mute"><![CDATA[Mute]]></item>
|
||||
<item name="chat.room.temporary.blueprint"><![CDATA[{assign var='microtime' value=true|microtime}Temproom#{$microtime*1000%1000} ({$user->username})]]></item>
|
||||
<item name="chat.room.temporary.blueprint"><![CDATA[{assign var='number' value=1000|random_int:9999}Temproom#{$number} ({$user->username})]]></item>
|
||||
</category>
|
||||
|
||||
<category name="chat.room.condition">
|
||||
|
Loading…
Reference in New Issue
Block a user