Adding support for $_ENV['KOHANA_ENV']. Fixes #3254
This commit is contained in:
parent
e1bc67783f
commit
5686a636da
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue