Add ParserOutput::addJsConfigVars
authorumherirrender <umherirrender_de.wp@web.de>
Sun, 19 Jan 2014 15:39:46 +0000 (16:39 +0100)
committerUmherirrender <umherirrender_de.wp@web.de>
Sun, 16 Feb 2014 20:35:49 +0000 (20:35 +0000)
commit542d2e8a90b4708b32bd8a82f09e7ff88b86c30a
tree2232e2b6ccc446a843e6344efa8fad8c82198753
parent50a137955010f6bfeb6fdbab7a9bffe3fc1e8b0f
Add ParserOutput::addJsConfigVars

The OutputPage has variables for modules, moduleScripts, moduleStyles,
moduleMessages and the config vars, but the ParserOutput is missing the
last one.

With ParserOutput::addJsConfigVars it is possible to add scripts and it
config vars at one place and have not use the MakeGlobalVariablesScript
hook or other ways to get the needed javascript variable in the output.

Change-Id: I6ad61cca76805f6b9d76e053c98c7509c323d5da
includes/OutputPage.php
includes/parser/ParserOutput.php