Reduce a bit the coupling between Skin and OutputPage:
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 22 Jul 2011 10:45:07 +0000 (10:45 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 22 Jul 2011 10:45:07 +0000 (10:45 +0000)
commite78acdc3f14234a4408ec0a29c15dad8a630ef89
tree3947953a3a4ec9718f88e3ec2f622fb99f7495ba
parent1159d6cdf1dcdcb0b24417b8a64f9c641df8daab
Reduce a bit the coupling between Skin and OutputPage:
* Removed Skin::setupUserCss() and merged it in OutputPage::buildCssLinks() and OutputPage::buildCssLinksArray(), also removed its call from ApiParse.php
* Moved Skin::userCanPreview() to OutputPage since two of the three calls to that function are made from there and the last one in SkinTemplate.php is in a somewhat deprecated function
* Removed the Skin parameter from OutputPage::buildCssLinks(), OutputPage::getHeadScripts(), OutputPage::getBottomScripts() and OutputPage::makeResourceLoaderLink() since we now have a context

Also made ApiParse.php call createContext() instead of create a new RequestContext manually and set its Title  so so that it does not rely on $wgRequest and $wgTitle to get that member objects
includes/OutputPage.php
includes/Skin.php
includes/SkinTemplate.php
includes/api/ApiParse.php