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.
17 if( !defined( 'MEDIAWIKI' ) )
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' ) ) {
27 * Inherit everything from SkinPHPTal
28 * This is a dummy skin as MonoBook is the default PHPTal skin.
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';