[Fusionforge-commits] r17776 - trunk/src/plugins/wiki/common

Marc-Etienne VARGENAU vargenau at fusionforge.org
Thu Aug 22 17:28:35 CEST 2013


Author: vargenau
Date: 2013-08-22 17:28:35 +0200 (Thu, 22 Aug 2013)
New Revision: 17776

Modified:
   trunk/src/plugins/wiki/common/WikiPlugin.class.php
   trunk/src/plugins/wiki/common/WikiSearchEngine.class.php
Log:
Revert removing global $gfwww, $gfcommon, $gfplugins

Modified: trunk/src/plugins/wiki/common/WikiPlugin.class.php
===================================================================
--- trunk/src/plugins/wiki/common/WikiPlugin.class.php	2013-08-22 13:17:06 UTC (rev 17775)
+++ trunk/src/plugins/wiki/common/WikiPlugin.class.php	2013-08-22 15:28:35 UTC (rev 17776)
@@ -98,6 +98,7 @@
 			$group_id = $GLOBALS['group_id'];
 			$group = group_get_object($group_id);
 			if ($group->usesPlugin ( $this->name)) {
+				global $gfwww, $gfcommon, $gfplugins;
 				require_once 'plugins/wiki/common/WikiHtmlSearchRenderer.class.php';
 				$wikiRenderer = new WikiHtmlSearchRenderer($params->words, $params->offset, $params->isExact, $params->groupId);
 				$validLength = (strlen($params->words) >= 3);

Modified: trunk/src/plugins/wiki/common/WikiSearchEngine.class.php
===================================================================
--- trunk/src/plugins/wiki/common/WikiSearchEngine.class.php	2013-08-22 13:17:06 UTC (rev 17775)
+++ trunk/src/plugins/wiki/common/WikiSearchEngine.class.php	2013-08-22 15:28:35 UTC (rev 17776)
@@ -46,6 +46,7 @@
 	}
 
 	function getSearchRenderer($words, $offset, $exact, $parameters) {
+		global $gfwww, $gfcommon, $gfplugins;
 		require_once($this->rendererClassName.'.class.php');
 		$renderer = new $this->rendererClassName($words, $offset, $exact,
 			$this->groupId);




More information about the Fusionforge-commits mailing list