From b11ce40f4bef7bb415e24ef60517097ca99781c1 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 6 Aug 2004 22:02:11 +0000 Subject: [PATCH] Close include hole on some insecure PHP configurations --- includes/SkinPHPTal.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/SkinPHPTal.php b/includes/SkinPHPTal.php index ad717d56f8..3206b5e700 100644 --- a/includes/SkinPHPTal.php +++ b/includes/SkinPHPTal.php @@ -26,6 +26,7 @@ # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # http://www.gnu.org/copyleft/gpl.html +if( defined( "MEDIAWIKI" ) ) { require_once "GlobalFunctions.php"; global $IP; require_once $IP."/PHPTAL-NP-0.7.0/libs/PHPTAL.php"; @@ -630,5 +631,5 @@ $this->skinname = "myskin"; } } - +} ?> -- 2.20.1