Fix 2536 : 'Related Changes' being shown on non existent pages
[lhc/web/wiklou.git] / skins / disabled / MonoBookTal.php
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.
8 *
9 * You can still use MonoBook.pt as a sample, or copy it
10 * to the parent directory to test with.
11 *
12 * @todo document
13 * @package MediaWiki
14 * @subpackage Skins
15 */
16
17 if( !defined( 'MEDIAWIKI' ) )
18 die();
19
20 /** */
21 require_once('includes/SkinPHPTal.php');
22
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
32 */
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';
40 }
41 }
42
43 }
44 ?>