Fix bug 26570 (user CSS preview broken) and bug 26555 (styles added with $out->addSty...
authorRoan Kattouw <catrope@users.mediawiki.org>
Thu, 6 Jan 2011 16:58:29 +0000 (16:58 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Thu, 6 Jan 2011 16:58:29 +0000 (16:58 +0000)
commitc53ccc605f1128eefebda9378116fd18223b1ec2
tree75e099f3d2517fccba921ec410d876b249b8a66c
parentae29df49147dfc053d58b5ce26d6cfe4698454fb
Fix bug 26570 (user CSS preview broken) and bug 26555 (styles added with $out->addStyle() are loaded after site/user CSS)

Did this by moving RL <link> generation from getHeadLinks() to buildCssLinks() (Trevor did this earlier), but did it right this time:
* Updated callers for buildCssLinks() parameter list change so stuff doesn't explode
* Considered making buildCssLinks() tolerant of a missing $sk parameter, but decided against this: it's not used in SVN extensions anywhere
* Changed addInlineStyle() to add styles to $this->mInlineStyles instead of $this->mScripts. This unbreaks addInlineStyle(), which was used for CSS previews
* Added styles added through addStyle()/addInlineStyle() in the right place (right after normal RL styles)
includes/OutputPage.php
includes/SkinTemplate.php