On Fri, Aug 13, 2004 at 01:00:41PM +0200, Thomas R. Koll wrote: OKOK, Nachtrag. Es sind noch drei Änderungen nötig:
*** includes/Skin.php.~2~ 2004-08-02 10:05:01.000000000 +0200 --- includes/Skin.php 2004-08-13 13:07:03.000000000 +0200 *************** if( $wgUsePHPTal ) { *** 19,24 **** --- 19,25 ---- #$wgValidSkinNames['mono'] = 'Mono'; $wgValidSkinNames['monobook'] = 'MonoBook'; $wgValidSkinNames['myskin'] = 'MySkin'; + $wgValidSkinNames['bonsai'] = 'Bonsai'; #$wgValidSkinNames['monobookminimal'] = 'MonoBookMinimal'; }
*** includes/SkinPHPTal.php.~1~ 2004-08-02 10:05:01.000000000 +0200 --- includes/SkinPHPTal.php 2004-08-13 13:08:44.000000000 +0200 *************** *** 624,629 **** --- 624,635 ---- } }
+ class SkinBonsai extends SkinPHPTal { + function initPage( &$out ) { + SkinPHPTal::initPage( $out ); + $this->skinname = "bonsai"; + } + } class SkinMySkin extends SkinPHPTal { function initPage( &$out ) { SkinPHPTal::initPage( $out );
*** includes/User.php.~1~ 2004-08-02 10:05:01.000000000 +0200 --- includes/User.php 2004-08-13 13:14:46.000000000 +0200 *************** class User { *** 460,465 **** --- 460,466 ----
# only require the needed stuff switch($sn) { + case 'SkinBonsai': case 'SkinMonoBook': require_once( 'SkinPHPTal.php' ); break;
ciao, tom