mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUG Don't re-declare manually-declared variables for public folder
This commit is contained in:
parent
e4b936c7c7
commit
15ef769e1d
@ -59,8 +59,12 @@ if (!defined('BASE_PATH')) {
|
||||
}
|
||||
|
||||
// Set public webroot dir / path
|
||||
define('PUBLIC_DIR', is_dir(BASE_PATH . DIRECTORY_SEPARATOR . 'public') ? 'public' : '');
|
||||
define('PUBLIC_PATH', PUBLIC_DIR ? BASE_PATH . DIRECTORY_SEPARATOR . PUBLIC_DIR : BASE_PATH);
|
||||
if (!defined('PUBLIC_DIR')) {
|
||||
define('PUBLIC_DIR', is_dir(BASE_PATH . DIRECTORY_SEPARATOR . 'public') ? 'public' : '');
|
||||
}
|
||||
if (!defined('PUBLIC_PATH')) {
|
||||
define('PUBLIC_PATH', PUBLIC_DIR ? BASE_PATH . DIRECTORY_SEPARATOR . PUBLIC_DIR : BASE_PATH);
|
||||
}
|
||||
|
||||
// Allow a first class env var to be set that disables .env file loading
|
||||
if (!Environment::getEnv('SS_IGNORE_DOT_ENV')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user