Add file extension to room icons

dev
gravel 7 months ago
parent 0e089c7c00
commit 1782a9a69c
Signed by: gravel
GPG Key ID: C0538F3C906B308F

@ -22,7 +22,7 @@
*/ */
function room_icon_path_resized(string $room_id, string $size): string { function room_icon_path_resized(string $room_id, string $size): string {
global $ROOM_ICONS; global $ROOM_ICONS;
return "$ROOM_ICONS/$room_id-$size"; return "$ROOM_ICONS/$room_id-$size.webp";
} }
/** /**
@ -32,7 +32,7 @@
*/ */
function room_icon_path_relative(string $room_id, string $size): string { function room_icon_path_relative(string $room_id, string $size): string {
global $ROOM_ICONS_RELATIVE; global $ROOM_ICONS_RELATIVE;
return "$ROOM_ICONS_RELATIVE/$room_id-$size"; return "$ROOM_ICONS_RELATIVE/$room_id-$size.webp";
} }
/** /**

Loading…
Cancel
Save