From b01a59301e813797eec2457a9047de57c7e88435 Mon Sep 17 00:00:00 2001 From: Michal Kleiner Date: Tue, 16 Aug 2016 12:29:10 +1200 Subject: [PATCH] Allow BASE_URL to be set outside SSPAK --- src/sspak-sniffer.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sspak-sniffer.php b/src/sspak-sniffer.php index 9d64538..e6fede7 100644 --- a/src/sspak-sniffer.php +++ b/src/sspak-sniffer.php @@ -17,7 +17,9 @@ // SilverStripe bootstrap define('BASE_PATH', $basePath); -define('BASE_URL', '/'); +if (!defined('BASE_URL')) { + define('BASE_URL', '/'); +} $_SERVER['HTTP_HOST'] = 'localhost'; chdir(BASE_PATH);