mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 15:05:33 +00:00
Fix dev check test (merged from 2.0.2 branch, r38232)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@40484 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
8dadf7a8aa
commit
980438a322
@ -509,11 +509,11 @@ global \$databaseConfig;
|
|||||||
);
|
);
|
||||||
|
|
||||||
// If we're running on local host, or a server with 'dev.' in its
|
// If we're running on local host, or a server with 'dev.' in its
|
||||||
// name, set the site to dev mode. You should add test for your
|
// name, set the site to dev mode. You should add a test for your
|
||||||
// development servers here also.
|
// development servers here also.
|
||||||
if(strpos(Director::baseURL(), "localhost") !== false ||
|
if(strpos(Director::baseURL(), "localhost") !== false ||
|
||||||
strpos(Director::baseURL(), "127.0.0.1") !== false ||
|
strpos(Director::baseURL(), "127.0.0.1") !== false ||
|
||||||
strpos(Director::baseURL(), "dev.")) {
|
strpos(Director::baseURL(), "dev.") !== false) {
|
||||||
Director::set_environment_type("dev");
|
Director::set_environment_type("dev");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user