[Fusionforge-commits] r12785 - branches/Branch_5_1/src/plugins/wiki/www
Alain Peyrat
aljeux at fusionforge.org
Tue Mar 15 22:20:58 CET 2011
Author: aljeux
Date: 2011-03-15 22:20:58 +0100 (Tue, 15 Mar 2011)
New Revision: 12785
Modified:
branches/Branch_5_1/src/plugins/wiki/www/g
Log:
Adapt wiki/g to use forge_get_config()
Modified: branches/Branch_5_1/src/plugins/wiki/www/g
===================================================================
--- branches/Branch_5_1/src/plugins/wiki/www/g 2011-03-15 19:02:23 UTC (rev 12784)
+++ branches/Branch_5_1/src/plugins/wiki/www/g 2011-03-15 21:20:58 UTC (rev 12785)
@@ -106,7 +106,7 @@
// Disable access log (already in Apache & FusionForge).
define('ACCESS_LOG_SQL', 0);
- define('DEBUG', ($sys_install_type != 'production'));
+ define('DEBUG', (forge_get_config ('installation_environment') != 'production'));
// Postgresql
define('DATABASE_TYPE', 'SQL');
@@ -229,8 +229,8 @@
// Override the default configuration for VARIABLES after index.php:
// E.g. Use another DB:
$DBParams['dbtype'] = 'SQL';
- $DBParams['dsn'] = 'ffpgsql://' . $sys_dbuser . ':' .
- $sys_dbpasswd . '@' . $sys_dbhost .'/' . $sys_dbname;
+ $DBParams['dsn'] = 'ffpgsql://' . forge_get_config('database_user') . ':' .
+ forge_get_config('database_password') . '@' . forge_get_config('database_host') .'/' . forge_get_config('database_name');
$DBParams['prefix'] = "plugin_wiki_";
More information about the Fusionforge-commits
mailing list