[Fusionforge-commits] r9507 - trunk/gforge/www/include

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Fri Apr 16 13:33:41 CEST 2010


Author: aljeux
Date: 2010-04-16 13:33:41 +0200 (Fri, 16 Apr 2010)
New Revision: 9507

Modified:
   trunk/gforge/www/include/squal_pre.php
Log:
Fix: Load new forge_config vars also for cron jobs.

Modified: trunk/gforge/www/include/squal_pre.php
===================================================================
--- trunk/gforge/www/include/squal_pre.php	2010-04-16 11:33:35 UTC (rev 9506)
+++ trunk/gforge/www/include/squal_pre.php	2010-04-16 11:33:41 UTC (rev 9507)
@@ -20,6 +20,23 @@
 }
 
 require $gfcgfile;
+require $gfcommon.'include/config.php';
+
+forge_define_config_item ('forge_name', 'core', $GLOBALS['sys_name']) ;
+forge_define_config_item ('user_registration_restricted', 'core', $GLOBALS['sys_user_reg_restricted']) ;
+forge_define_config_item ('web_host', 'core', $GLOBALS['sys_default_domain']) ;
+forge_define_config_item ('scm_tarballs_path', 'core', $GLOBALS['sys_scm_tarballs_path']) ;
+forge_define_config_item ('scm_snapshots_path', 'core', $GLOBALS['sys_scm_snapshots_path']) ;
+// forge_define_config_item ('', 'core', $GLOBALS['sys_']) ;
+
+/* Long-term:
+ require_once $gfcommon.'include/FusionForge.class.php';
+ $forge = new FusionForge() ;
+ forge_define_config_item ('forge_name', 'core', $forge->software_name) ;
+ forge_define_config_item ('user_registration_restricted', 'core', false) ;
+*/
+forge_read_config_file ($gfconfig.'/config.ini') ;
+
 require $gfcommon.'include/constants.php';
 require_once $gfcommon.'include/database-pgsql.php';
 require_once $gfcommon.'include/session.php';




More information about the Fusionforge-commits mailing list