From: Brion Vibber Date: Thu, 12 Aug 2004 06:25:48 +0000 (+0000) Subject: register_globals should be kicked in the naughty bits until it cries out in painand... X-Git-Tag: 1.5.0alpha1~2405 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=d9894e6cc08e5d558d5e75a6a6c26e19a1cb70c8;p=lhc%2Fweb%2Fwiklou.git register_globals should be kicked in the naughty bits until it cries out in painand asks for mercy. --- 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) {