Skip to content

Commit

Permalink
Allow BASE_URL to be set outside SSPAK
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkleiner committed Aug 16, 2016
1 parent 0db5fcb commit b01a593
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sspak-sniffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b01a593

Please sign in to comment.