Ticket #6 (closed defect: fixed)
Missing flag icons are displayed as broken images
| Reported by: | weppos | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | 2.1.5 |
| Component: | Interface | Version: | 2.1.3 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Actually the following code is used to display an image
<img src="images/flags/<%= objAsgRs2("Country2") %>.png" border="0"
align="absmiddle" />
In a rare case flag collection may be missing requested flag. This such of logic isn't able to check whether the flag exists before displaying it.
It's recommended to create a new printFlagIcon() (and perhaps a getFlagIcon()) to get flag icon and decorate it with an image tag.
Change History
Note: See
TracTickets for help on using
tickets.
![(please configure the [header_logo] section in trac.ini)](http://www.asp-stats.com/images/asg-logo.png)