BUG 0000 "improvements on System::getSystemConfiguration() function"

- this is a important improvement, now we can have two configurations levels
  1. Global Configuration Level (workflow/engine/config/env.ini)
  2. Workspace Configuration Level (.../shared/sites/some_workflow/env.ini)

- improvement to read env's ini files once and store on session,
- if any file has been changed (verify by checksum files) that session value is updated

(removind debug print_r)
This commit is contained in:
Erik Amaru Ortiz
2012-05-15 17:05:47 -04:00
parent e66ceb6e0a
commit bd071fbb52

View File

@@ -58,10 +58,9 @@
// starting session // starting session
session_start(); session_start();
echo '<pre>';
$config = System::getSystemConfiguration(); $config = System::getSystemConfiguration();
print_r($config);
print_r($_SESSION); die;
$e_all = defined('E_DEPRECATED') ? E_ALL & ~E_DEPRECATED : E_ALL; $e_all = defined('E_DEPRECATED') ? E_ALL & ~E_DEPRECATED : E_ALL;
$e_all = defined('E_STRICT') ? $e_all & ~E_STRICT : $e_all; $e_all = defined('E_STRICT') ? $e_all & ~E_STRICT : $e_all;
$e_all = $config['debug'] ? $e_all : $e_all & ~E_NOTICE; $e_all = $config['debug'] ? $e_all : $e_all & ~E_NOTICE;