Skip to content

Commit

Permalink
fix(match2): h2h error on sc/sc2/wc3 (#4950)
Browse files Browse the repository at this point in the history
* fix(match2): error on sc/sc2

* same for wc3
  • Loading branch information
Rathoz authored Oct 23, 2024
1 parent 6a67a09 commit e1e85d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ function MatchFunctions.getHeadToHeadLink(match, opponents)

return (tostring(mw.uri.fullUrl('Special:RunQuery/Match_history'))
.. '?pfRunQueryFormName=Match+history&Head_to_head_query%5Bplayer%5D='
.. opponents[1].players[1].name
.. opponents[1].match2players[1].name
.. '&Head_to_head_query%5Bopponent%5D='
.. opponents[2].players[1].name
.. opponents[2].match2players[1].name
.. '&wpRunQuery=Run+query'):gsub(' ', '_')
end

Expand Down
4 changes: 2 additions & 2 deletions components/match2/wikis/warcraft/match_group_input_custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ function MatchFunctions.getHeadToHeadLink(opponents)

return (tostring(mw.uri.fullUrl('Special:RunQuery/Head-to-Head'))
.. '?pfRunQueryFormName=Head-to-Head&Head+to+head+query%5Bplayer%5D='
.. opponents[1].players[1].name
.. opponents[1].match2players[1].name
.. '&Head_to_head_query%5Bopponent%5D='
.. opponents[2].players[1].name
.. opponents[2].match2players[1].name
.. '&wpRunQuery=Run+query'):gsub(' ', '_')
end

Expand Down

0 comments on commit e1e85d8

Please sign in to comment.