Fix flag building.

This commit is contained in:
Mayhem 2013-07-02 18:50:46 +02:00
parent 2a99db7cdd
commit 8854f9a06f

View File

@ -104,12 +104,12 @@ Build =
capcodeStart = ''
capcode = ''
flag =
if flagCode
" <img src='#{staticPath}country/#{if boardID is 'pol' then 'troll/' else ''}" +
flagCode.toLowerCase() + ".gif' alt=#{flagCode} title='#{flagName}' class=countryFlag>"
else
''
flag = unless flagCode
''
else if boardID is 'pol'
" <img src='#{staticPath}country/troll/#{flagCode.toLowerCase()}.gif' alt=#{flagCode} title='#{flagName}' class=countryFlag>"
else
" <span title='#{flagName}' class='flag flag-#{flagCode.toLowerCase()}'></span>"
if file?.isDeleted
fileHTML = if isOP