diff --git a/README.md b/README.md index 7f4a531..e19aba8 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # Kohana PHP Framework, version 3.1 (release) -This is the current development version of [Kohana](http://kohanaframework.org/). +This is the current release version of [Kohana](http://kohanaframework.org/). 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/index.php b/index.php index bc629d8..71c3249 100644 --- a/index.php +++ b/index.php @@ -56,15 +56,15 @@ error_reporting(E_ALL | E_STRICT); // Set the full path to the docroot define('DOCROOT', realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR); -// Make the application relative to the docroot +// Make the application relative to the docroot, for symlink'd index.php if ( ! is_dir($application) AND is_dir(DOCROOT.$application)) $application = DOCROOT.$application; -// Make the modules relative to the docroot +// Make the modules relative to the docroot, for symlink'd index.php if ( ! is_dir($modules) AND is_dir(DOCROOT.$modules)) $modules = DOCROOT.$modules; -// Make the system relative to the docroot +// Make the system relative to the docroot, for symlink'd index.php if ( ! is_dir($system) AND is_dir(DOCROOT.$system)) $system = DOCROOT.$system; diff --git a/modules/unittest b/modules/unittest index 748b8d1..a7d7fdb 160000 --- a/modules/unittest +++ b/modules/unittest @@ -1 +1 @@ -Subproject commit 748b8d16add146c3674bd34387856c6f55506c5a +Subproject commit a7d7fdbfc2e641d9b0fa59eca4ede5b18e1fccd0 diff --git a/system b/system index 1cb9690..3fea2fb 160000 --- a/system +++ b/system @@ -1 +1 @@ -Subproject commit 1cb969039b2f9cfc3920c030066179033e981d1b +Subproject commit 3fea2fbbcd1ac9b7318dd44e80c2c6ca02823ebe