From 3dddbdf82191ac28d7cc1f0cec5e682a811f088f Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 10 Mar 2004 00:56:23 +0000 Subject: [PATCH] Set up Smarty skins to be usable if $wgUseSmarty is set --- includes/DefaultSettings.php | 3 +++ includes/Skin.php | 10 ++++++++-- includes/SkinSmarty.php | 6 +++--- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 4a7fe1fa28..60a17a19cf 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -252,6 +252,9 @@ $wgSiteNotice = ""; $wgAllowAnonymousMinor = false; +# Enable experimental smarty skins (put Smart/libs in your include_path!) +$wgUseSmarty = false; + if( !isset( $wgCommandLineMode ) ) { $wgCommandLineMode = false; } diff --git a/includes/Skin.php b/includes/Skin.php index 36752f585b..f4bf219f08 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -6,8 +6,12 @@ # Language class has internationalized names # /* private */ $wgValidSkinNames = array( - "Standard", "Nostalgia", "CologneBlue" #, "Smarty", "Montparnasse" + "Standard", "Nostalgia", "CologneBlue" ); +if( $wgUseSmarty ) { + $wgValidSkinNames[] = "Smarty"; + $wgValidSkinNames[] = "Montparnasse"; +} include_once( "RecentChange.php" ); @@ -2381,6 +2385,8 @@ include_once( "SkinStandard.php" ); include_once( "SkinNostalgia.php" ); include_once( "SkinCologneBlue.php" ); -#include_once( "SkinSmarty.php" ); +if( $wgUseSmarty ) { + include_once( "SkinSmarty.php" ); +} ?> diff --git a/includes/SkinSmarty.php b/includes/SkinSmarty.php index d71a9473f4..8e2a3c472b 100644 --- a/includes/SkinSmarty.php +++ b/includes/SkinSmarty.php @@ -1,13 +1,13 @@ template = "paddington"; } -- 2.20.1