[Fusionforge-commits] r10460 - in trunk/src/plugins/globalsearch: . common db

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Mon Sep 13 09:52:44 CEST 2010


Author: nerville
Date: 2010-09-13 09:52:43 +0200 (Mon, 13 Sep 2010)
New Revision: 10460

Added:
   trunk/src/plugins/globalsearch/db/
Removed:
   trunk/src/plugins/globalsearch/lib/
Modified:
   trunk/src/plugins/globalsearch/common/GlobalsearchPlugin.class.php
   trunk/src/plugins/globalsearch/db/globalsearch-init.sql
Log:
fix globalsearch plugin init

Modified: trunk/src/plugins/globalsearch/common/GlobalsearchPlugin.class.php
===================================================================
--- trunk/src/plugins/globalsearch/common/GlobalsearchPlugin.class.php	2010-09-12 18:04:10 UTC (rev 10459)
+++ trunk/src/plugins/globalsearch/common/GlobalsearchPlugin.class.php	2010-09-13 07:52:43 UTC (rev 10460)
@@ -37,7 +37,7 @@
 		if ($hookname == "site_admin_option_hook") {
 			print '<li><a href="/plugins/globalsearch/edit_assoc_sites.php">'._("Admin Associated Forges").'</a></li>';
 		} elseif ($hookname == "features_boxes_top") {
-			$params['returned_text'] .= $HTML->boxTop(_('Associated Forges'), 'Associated_Forges');
+            (isset($params['returned_text'])) ? $params['returned_text'] .= $HTML->boxTop(_('Associated Forges'), 'Associated_Forges') : $params['returned_text'] = $HTML->boxTop(_('Associated Forges'), 'Associated_Forges');
 			$params['returned_text'] .= $this->show_top_n_assocsites (5) ;
 			$params['returned_text'] .= $this->search_box () ;
 		}

Modified: trunk/src/plugins/globalsearch/db/globalsearch-init.sql
===================================================================
--- trunk/src/plugins/globalsearch/lib/globalsearch-init.sql	2010-09-12 18:04:10 UTC (rev 10459)
+++ trunk/src/plugins/globalsearch/db/globalsearch-init.sql	2010-09-13 07:52:43 UTC (rev 10460)
@@ -5,12 +5,18 @@
   CONSTRAINT "plugin_globalsearch_assoc_status_pkey" PRIMARY KEY ("status_id")
 );
 
-COPY "plugin_globalsearch_assoc_status" FROM stdin;
-1	New
-2	Ok
-3	Fail
-4	Unparsable
-\.
+INSERT INTO plugin_globalsearch_assoc_status (status_name)
+VALUES ('New') ;
+
+INSERT INTO plugin_globalsearch_assoc_status (status_name)
+VALUES ('Ok') ;
+
+INSERT INTO plugin_globalsearch_assoc_status (status_name)
+VALUES ('Fail') ;
+
+INSERT INTO plugin_globalsearch_assoc_status (status_name)
+VALUES ('Unparsable') ;
+
 SELECT setval ('"plugin_globalsearch_assoc_status_pk_seq"', 4, false);
 
 CREATE SEQUENCE "plugin_globalsearch_assoc_site_pk_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1;




More information about the Fusionforge-commits mailing list