get_room_identifier(); $png_cached = room_qr_code_path($room_id); if (file_exists($png_cached)) { return room_qr_code_path_relative($room_id); } log_debug("Fetching QR code for $room_id."); $png = file_get_contents($room->get_invite_url()); if (empty($png)) { log_warning("$room_id returned empty QR code."); } file_put_contents($png_cached, $png); return room_qr_code_path_relative($room_id); } file_exists($QR_CODES) or mkdir($QR_CODES, 0755); ?>