wiki.techinc.nl/skins/MySkin.php
Alexandre Emsenhuber 0b5389d98d * (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
2009-09-22 16:52:40 +00:00

20 lines
434 B
PHP

<?php
/**
* MySkin: Monobook without the CSS. The idea is that you
* customise it using user or site CSS
*
* @file
* @ingroup Skins
*/
if( !defined( 'MEDIAWIKI' ) )
die( -1 );
/**
* Inherit main code from SkinTemplate, set the CSS and template filter.
* @ingroup Skins
*/
class SkinMySkin extends SkinTemplate {
var $skinname = 'myskin', $stylename = 'myskin',
$template = 'MonoBookTemplate', $useHeadElement = true;
}