From 9e80b5e840da7e5e476d37e180fc7cb90ac7c424 Mon Sep 17 00:00:00 2001 From: aoneil Date: Mon, 20 Aug 2007 00:43:56 +0000 Subject: [PATCH] Comment about dev mode (merged from 2.0.2 branch, r38246) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@40485 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- install.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/install.php b/install.php index b02c26f..4538985 100644 --- a/install.php +++ b/install.php @@ -508,14 +508,14 @@ global \$databaseConfig; "database" => "{$config['mysql']['database']}", ); -// If we're running on local host, or a server with 'dev.' in its -// name, set the site to dev mode. You should add a test for your -// development servers here also. -if(strpos(Director::baseURL(), "localhost") !== false || - strpos(Director::baseURL(), "127.0.0.1") !== false || - strpos(Director::baseURL(), "dev.") !== false) { - Director::set_environment_type("dev"); - } +// By default, sites running on localhost or hosts +// beginning with 'dev' are set to dev mode. For +// a description of what dev mode does, see +// http://doc.silverstripe.com/doku.php?id=devmode +// You can set your site to dev mode by uncommenting +// the line below: + +//Director::set_environment_type('dev'); ?> PHP