Skip to content

Commit

Permalink
feat(infobox): use HighlightConditions for infobox league
Browse files Browse the repository at this point in the history
  • Loading branch information
iMarbot authored Oct 29, 2024
1 parent 05bbc71 commit 7e71cfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/infobox/commons/infobox_league.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ local Variables = require('Module:Variables')

local BasicInfobox = Lua.import('Module:Infobox/Basic')
local Flags = Lua.import('Module:Flags')
local HighlightConditions = Lua.import('Module:HighlightConditions')
local InfoboxPrizePool = Lua.import('Module:Infobox/Extensions/PrizePool')
local LeagueIcon = Lua.import('Module:LeagueIcon')
local Links = Lua.import('Module:Links')
Expand Down Expand Up @@ -417,7 +418,7 @@ end
---@param args table
---@return boolean
function League:liquipediaTierHighlighted(args)
return self.data.publishertier
return HighlightConditions.tournament(self.data)
end

--- Allows for overriding this functionality
Expand Down

0 comments on commit 7e71cfb

Please sign in to comment.