Fix the target URL of HTMLForm
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 29 Mar 2013 17:12:30 +0000 (18:12 +0100)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 29 May 2013 06:30:32 +0000 (06:30 +0000)
commitaad8dc4c03cd5498b8cc636c883a60a688da3ef8
tree3546f818a7333946a38c2ef029664cb1d28aee38
parent5848c65876909259de2d226bcabd4c19c1289220
Fix the target URL of HTMLForm

- Use a local URL instead of a full one
- Use $wgScriptPath instead of title's URL when $wgArticlePath
  contains a "?" since it'll be removed by web browser
- Move the URL generation to getAction() for better readability
- Use getMethod() instead of mMethod for consistency

Change-Id: I7c40cae839e52e2e8618d48c7a3b2f9709e6f2d6
includes/HTMLForm.php