[Fusionforge-commits] r15609 - branches/Branch_5_2/src/plugins/wiki/www

Olivier Meunier musicoliv at fusionforge.org
Tue May 29 20:02:15 CEST 2012


Author: musicoliv
Date: 2012-05-29 20:02:14 +0200 (Tue, 29 May 2012)
New Revision: 15609

Modified:
   branches/Branch_5_2/src/plugins/wiki/www/g
Log:
Use forge_get_config to get database info for the wiki

Modified: branches/Branch_5_2/src/plugins/wiki/www/g
===================================================================
--- branches/Branch_5_2/src/plugins/wiki/www/g	2012-05-29 16:54:51 UTC (rev 15608)
+++ branches/Branch_5_2/src/plugins/wiki/www/g	2012-05-29 18:02:14 UTC (rev 15609)
@@ -240,8 +240,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