From 84a87d28544c90d361e501aa1ac2141aa0c68b73 Mon Sep 17 00:00:00 2001 From: Eriksen Costa Paixão Date: Fri, 17 Jul 2009 18:58:36 +0000 Subject: [PATCH] by Eriksen: Atualizado arquivo para utilizar a variável de ambiente configurada no .htaccess --- ieducar/includes/bootstrap.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ieducar/includes/bootstrap.php b/ieducar/includes/bootstrap.php index c07ec9e..8328f29 100644 --- a/ieducar/includes/bootstrap.php +++ b/ieducar/includes/bootstrap.php @@ -49,8 +49,12 @@ set_include_path($coreExt . PATH_SEPARATOR . get_include_path()); * Define o ambiente de configuração desejado. Verifica se existe uma variável * de ambiente configurada ou define 'production' como padrão. */ -defined('CORE_EXT_CONFIGURATION_ENV') || - define('CORE_EXT_CONFIGURATION_ENV', 'development'); +if (getenv('CORE_EXT_CONFIGURATION_ENV')) { + define('CORE_EXT_CONFIGURATION_ENV', getenv('CORE_EXT_CONFIGURATION_ENV')); +} +else { + define('CORE_EXT_CONFIGURATION_ENV', 'production'); +} // Arquivo de configuração INI $configFile = realpath(dirname(__FILE__) . '/../') . '/configuration/ieducar.ini'; -- libgit2 0.21.2