Skip to content

Commit

Permalink
Use commons default for participantsnumber on sc2 (#3275)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjpalpha authored Sep 7, 2023
1 parent 4a03852 commit 57743a8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions components/infobox/wikis/starcraft2/infobox_league_custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -449,11 +449,6 @@ function CustomLeague:addToLpdb(lpdbData, args)
or Logic.readBool(Variables.varDefault('tournament_finished')) and 'finished'
lpdbData.status = status
lpdbData.maps = Variables.varDefault('tournament_maps')
local participantsNumber = tonumber(Variables.varDefault('tournament_playerNumber')) or 0
if participantsNumber == 0 then
participantsNumber = args.team_number or 0
end
lpdbData.participantsnumber = participantsNumber
lpdbData.next = mw.ext.TeamLiquidIntegration.resolve_redirect(CustomLeague:_getPageNameFromChronology(_next))
lpdbData.previous = mw.ext.TeamLiquidIntegration.resolve_redirect(CustomLeague:_getPageNameFromChronology(_previous))

Expand Down

0 comments on commit 57743a8

Please sign in to comment.