don't produce warnings in get() if the item is missing
[mediawiki.git] / skins / disabled / MonoBookTal.php
blob876150ce2222559c5294bc644f9d7e73b8c3a16c
1 <?php
2 /**
3 * This is for the old PHPTAL-based version of MonoBook.
4 * The main MonoBook has been converted to straight PHP
5 * to avoid the dependency on PHPTAL and, hopefully,
6 * reduce the frequent problems users have with compiled
7 * PHPTAL templates failing.
9 * You can still use MonoBook.pt as a sample, or copy it
10 * to the parent directory to test with.
12 * @todo document
13 * @package MediaWiki
14 * @subpackage Skins
17 if( !defined( 'MEDIAWIKI' ) )
18 die();
20 /** */
21 require_once('includes/SkinPHPTal.php');
23 # Test if PHPTal is enabled. If not MediaWiki will load the 'standard' skin
24 # which doesnt use PHPTal
25 if( class_exists( 'SkinPHPTal' ) ) {
26 /**
27 * Inherit everything from SkinPHPTal
28 * This is a dummy skin as MonoBook is the default PHPTal skin.
29 * @todo document
30 * @package MediaWiki
31 * @subpackage Skins
33 class SkinMonoBookTal extends SkinPHPTal {
34 /** Using monobook. */
35 function initPage( &$out ) {
36 SkinPHPTal::initPage( $out );
37 $this->skinname = 'monobooktal';
38 $this->stylename = 'monobook';
39 $this->template = 'MonoBook';