diff --git a/application/bootstrap.php b/application/bootstrap.php index 27462b8..d6081cd 100644 --- a/application/bootstrap.php +++ b/application/bootstrap.php @@ -61,9 +61,9 @@ I18n::lang('en-us'); * Note: If you supply an invalid environment name, a PHP warning will be thrown * saying "Couldn't find constant Kohana::" */ -if (getenv('KOHANA_ENV') !== FALSE) +if (isset($_SERVER['KOHANA_ENV'])) { - Kohana::$environment = constant('Kohana::'.strtoupper(getenv('KOHANA_ENV'))); + Kohana::$environment = constant('Kohana::'.strtoupper($_SERVER['KOHANA_ENV'])); } /** diff --git a/build.xml b/build.xml index 7006053..9c2cfd6 100644 --- a/build.xml +++ b/build.xml @@ -1,12 +1,11 @@ - - + + + - - @@ -170,12 +169,12 @@ - + - + diff --git a/modules/unittest b/modules/unittest index 748b8d1..ac22963 160000 --- a/modules/unittest +++ b/modules/unittest @@ -1 +1 @@ -Subproject commit 748b8d16add146c3674bd34387856c6f55506c5a +Subproject commit ac2296343083736b4abaef02eae0a224e1b8cf99 diff --git a/system b/system index 129d45a..6150fc1 160000 --- a/system +++ b/system @@ -1 +1 @@ -Subproject commit 129d45aa971b41aa2b8d2df28c2ed81c33b33364 +Subproject commit 6150fc1de0bb8060b9f6dc42dd801351a6aa36de