From d9894e6cc08e5d558d5e75a6a6c26e19a1cb70c8 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 12 Aug 2004 06:25:48 +0000 Subject: [PATCH] register_globals should be kicked in the naughty bits until it cries out in painand asks for mercy. --- PHPTAL-NP-0.7.0/libs/PHPTAL.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PHPTAL-NP-0.7.0/libs/PHPTAL.php b/PHPTAL-NP-0.7.0/libs/PHPTAL.php index e3c0cd3fc9..5caa2152c6 100644 --- a/PHPTAL-NP-0.7.0/libs/PHPTAL.php +++ b/PHPTAL-NP-0.7.0/libs/PHPTAL.php @@ -32,7 +32,9 @@ */ $__d = dirname(__FILE__); -define('PT_IP', $IP.'/PHPTAL-NP-0.7.0/libs'); +if( defined( 'MEDIAWIKI' ) ) { + define('PT_IP', $IP.'/PHPTAL-NP-0.7.0/libs'); +} require_once "PEAR.php"; if (OS_WINDOWS) { -- 2.20.1