Skip to content

Commit

Permalink
Merge pull request #47 from chrometoasters/pulls/allow-base-url-constant
Browse files Browse the repository at this point in the history
Allow BASE_URL to be set outside SSPAK
  • Loading branch information
dhensby authored Aug 17, 2016
2 parents 0db5fcb + b01a593 commit 33dbe9b
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 33dbe9b

Please sign in to comment.