Allow passing parameters to preload
authorJackmcbarn <jackmcbarn@gmail.com>
Mon, 7 Apr 2014 01:03:02 +0000 (21:03 -0400)
committerJackmcbarn <jackmcbarn@gmail.com>
Mon, 7 Apr 2014 01:03:02 +0000 (21:03 -0400)
commit730c2c01a843cac4a98a12fe22ad7c2745abfe71
tree9eb5540ceda099b6a459653d18b22a9945e430c0
parentf0d0d680579c3b6b6c5c61792544943bb2cd16ee
Allow passing parameters to preload

When pages are loaded in the edit box via preload, allow parameter
substitution. The interface-style $1 is used rather than the
template-style {{{1}}} to avoid conflicts with preloads that add template
parameters. Syntax is:
action=edit&preload=Foo&preloadparams[]=first&preloadparams[]=second

Bug: 12853
Change-Id: If02cf4b3dba9f9d22a956d8bfff224677cbce00d
includes/EditPage.php
includes/content/AbstractContent.php
includes/content/Content.php
includes/content/WikitextContent.php
includes/parser/Parser.php