[Fusionforge-commits] r14589 - in branches/Branch_5_1: . src/common/include

Roland Mas lolando at fusionforge.org
Sun Oct 9 16:12:52 CEST 2011


Author: lolando
Date: 2011-10-09 16:12:51 +0200 (Sun, 09 Oct 2011)
New Revision: 14589

Modified:
   branches/Branch_5_1/
   branches/Branch_5_1/src/common/include/database-pgsql.php
Log:
Only set the FTI search config when actually using FTI

Modified: branches/Branch_5_1/src/common/include/database-pgsql.php
===================================================================
--- branches/Branch_5_1/src/common/include/database-pgsql.php	2011-10-09 13:48:35 UTC (rev 14588)
+++ branches/Branch_5_1/src/common/include/database-pgsql.php	2011-10-09 14:12:51 UTC (rev 14589)
@@ -99,10 +99,11 @@
 	define('SYS_DB_TROVE', $gfconn2);
 	define('SYS_DB_SEARCH', $gfconn2);
 
-	db_query_params ('SELECT set_config($1, $2, false)', 
-			 array('default_text_search_config',
-			       'simple'));
-	
+	if (forge_get_config('use_fti')) {
+		db_query_params ('SELECT set_config($1, $2, false)', 
+				 array('default_text_search_config',
+				       'simple'));
+	}
 	// Register top-level "finally" handler to abort current
 	// transaction in case of error
 	register_shutdown_function("system_cleanup");




More information about the Fusionforge-commits mailing list