From e6a21c87dbd886118f196d15d24be466ea798697 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Sat, 16 Jun 2007 04:27:18 +0000 Subject: [PATCH] Add warning on chdir. git-svn-id: http://htmlpurifier.org/svnroot@1144 48356398-32a2-884e-a903-53898d9a118a --- common.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common.php b/common.php index 97baee9..596241e 100644 --- a/common.php +++ b/common.php @@ -1,7 +1,11 @@ =")) exit('Requires PHP 5.'); -chdir( dirname(__FILE__) . '/../'); // set working directory to parent directory (slightly hacky) + +// set working directory to parent directory (slightly hacky) +// if we want this to be able to be included in other apps, +// this must be removed +chdir( dirname(__FILE__) . '/../'); require_once 'htmlpurifier/HTMLPurifier.auto.php'; require_once 'functions.php'; -- 2.11.4.GIT