Adding support for $_ENV['KOHANA_ENV']. Fixes #3254

This commit is contained in:
Kiall Mac Innes 2010-09-20 21:11:33 +01:00
parent e1bc67783f
commit 5686a636da

View file

@ -53,6 +53,15 @@ Kohana::init(array(
'base_url' => '/',
));
/**
* Set Kohana::$environment if $_ENV['KOHANA_ENV'] has been supplied.
*
*/
if (isset($_ENV['KOHANA_ENV']))
{
Kohana::$environment = $_ENV['KOHANA_ENV'];
}
/**
* Attach the file write to logging. Multiple writers are supported.
*/