* (bug 20631) Preview of personal JavaScript and CSS pages now works again
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 22 Sep 2009 16:52:40 +0000 (16:52 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 22 Sep 2009 16:52:40 +0000 (16:52 +0000)
commit0b5389d98d611d490a604baa798e9e98f5f1b395
treea128e3cd68dca81f6c17f3a45c9e53d69cb407d5
parent536eb2b4d9c7a86b90837bda4e5565c2cd8876c9
* (bug 20631) Preview of personal JavaScript and CSS pages now works again
* introduced SkinTemplate::$useHeadElement as switch for backward compatibility for extension skins using the old way of generating the <head> element:
** false (default): no change from previous version
** true: <head> specific items set in SkinTemplate::outputPage() are no longer generated (avoid double execution of some functions) and the result of OutputPage::headElement() is stored in the 'headelement' item
* updated all core skin to use this new method, some extensions using MonoBookTemplate but not extending SkinMonoBook (or for other core skins) will need to set $useHeadElement to true to work properly though
* Made Skin::userCanPreview() public since it's needed in OutputPage::getHeadScripts()
* Pass the Skin object from OutputPage::headElement() to OutputPage::getHeadScripts() rather than getting it from $wgUser
includes/OutputPage.php
includes/Skin.php
includes/SkinTemplate.php
skins/Chick.php
skins/Modern.php
skins/MonoBook.php
skins/MySkin.php
skins/Simple.php
skins/Vector.php