mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-16 15:17:17 +00:00
Add Global Chat Options
Add Global Chat Options 1. emoji 2. Poll 3. Delete message 4. Edit message
This commit is contained in:
@@ -75,6 +75,12 @@ trait DatabaseConnectionCore {
|
||||
}
|
||||
|
||||
if ($this->dblink instanceof \mysqli) {
|
||||
// FIX (Faza 2 Global Chat, 09.09.2026): fara asta, conexiunea foloseste
|
||||
// charset-ul implicit al serverului MySQL, care poate sa nu fie utf8mb4 -
|
||||
// emoji-urile (caractere pe 4 octeti) ar pica cu eroare sau ar fi trunchiate
|
||||
// silentios la INSERT in chat_global.msg (acum utf8mb4). utf8mb4 e superset
|
||||
// peste utf8, deci restul tabelelor (ramase utf8) nu sunt afectate negativ.
|
||||
@mysqli_set_charset($this->dblink, 'utf8mb4');
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user