From 1385cc9ccdfd355afb30211662489f29462e9c1e Mon Sep 17 00:00:00 2001 From: Martin B Date: Thu, 9 Jan 2025 08:30:16 +0000 Subject: [PATCH] feat(infobox): use highlight conditions to determine sponsored category on CS (#5291) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(infobox): use highlight conditions to determine sponsored category on CS * remove log that salt added on dev 😅 whoops --- .../infobox/wikis/counterstrike/infobox_league_custom.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/infobox/wikis/counterstrike/infobox_league_custom.lua b/components/infobox/wikis/counterstrike/infobox_league_custom.lua index bf63fcddedd..d4d83d956aa 100644 --- a/components/infobox/wikis/counterstrike/infobox_league_custom.lua +++ b/components/infobox/wikis/counterstrike/infobox_league_custom.lua @@ -19,6 +19,7 @@ local Variables = require('Module:Variables') local Currency = Lua.import('Module:Currency') local Game = Lua.import('Module:Game') +local HighlightConditions = Lua.import('Module:HighlightConditions') local InfoboxPrizePool = Lua.import('Module:Infobox/Extensions/PrizePool') local Injector = Lua.import('Module:Widget/Injector') local League = Lua.import('Module:Infobox/League') @@ -227,7 +228,7 @@ function CustomLeague:getWikiCategories(args) table.insert(categories, 'ESL Pro Tour Tournaments') end - if self.valveTier then + if HighlightConditions.tournament(self.data) then table.insert(categories, 'Valve Sponsored Tournaments') end