Moved Skin::makeGlobalVariablesScript() to OutputPage::getJSVars()
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 16 Feb 2011 18:25:44 +0000 (18:25 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 16 Feb 2011 18:25:44 +0000 (18:25 +0000)
commit4fe955e32b9ede2975f3fc9ca68b8cd7e73fc604
tree9ab3015f9cdc1182f8dff3833da50a1f6396d9c3
parente2dc92dcbcf84fe04b4e2ee916313c47ba292723
Moved Skin::makeGlobalVariablesScript() to OutputPage::getJSVars()
* merged <script> and if ( window.mediaWiki ) block with the one of mediaWiki.loader as stated in the doc
* removed dependency of $wgTitle
* the two only calls to this functions are in SemanticForms, but will not affect current version of MediaWiki:
** specials/SF_UploadWindow.php: this file is only used before 1.16
** specials/SF_UploadWindow2.php: the call is part of the else branch of a "method_exists( $wgOut, 'addModules' )" check, which means it's not called since 1.17
includes/OutputPage.php
includes/Skin.php