[Fusionforge-commits] r10261 - trunk/src/common/include

Thorsten Glaser mirabilos at libremir.placard.fr.eu.org
Fri Jul 16 18:02:41 CEST 2010


Author: mirabilos
Date: 2010-07-16 18:02:41 +0200 (Fri, 16 Jul 2010)
New Revision: 10261

Modified:
   trunk/src/common/include/pre.php
Log:
switch to sysdebug variable (whose default will be determined
by the installation type)


Modified: trunk/src/common/include/pre.php
===================================================================
--- trunk/src/common/include/pre.php	2010-07-16 15:52:57 UTC (rev 10260)
+++ trunk/src/common/include/pre.php	2010-07-16 16:02:41 UTC (rev 10261)
@@ -116,8 +116,23 @@
 
 forge_define_config_item ('installation_environment', 'core', 'production') ;
 $installation_environment = forge_get_config ('installation_environment') ;
+if ($installation_environment == 'development' || $installation_environment == 'integration')
+	$default_sysdebug_enable = 'true';
+else
+	$default_sysdebug_enable = 'false';
+forge_define_config_item ('sysdebug_enable', 'core', $default_sysdebug_enable) ;
+forge_set_config_item_bool ('sysdebug_enable', 'core') ;
+forge_define_config_item ('sysdebug_phphandler', 'core', 'true') ;
+forge_set_config_item_bool ('sysdebug_phphandler', 'core') ;
+forge_define_config_item ('sysdebug_ignored', 'core', 'false') ;
+forge_set_config_item_bool ('sysdebug_ignored', 'core') ;
+forge_define_config_item ('sysdebug_xmlstarlet', 'core', 'false') ;
+forge_set_config_item_bool ('sysdebug_xmlstarlet', 'core') ;
+forge_define_config_item ('sysdebug_akelos', 'core', 'false') ;
+forge_set_config_item_bool ('sysdebug_akelos', 'core') ;
 // Load extra func to add extras func like debug
-if ($installation_environment == 'development' || $installation_environment == 'integration') {
+$sysdebug_enable = forge_get_config('sysdebug_enable');
+if ($sysdebug_enable) {
 	require $gfcommon.'include/extras-debug.php';
 }
 




More information about the Fusionforge-commits mailing list