[Fusionforge-commits] FusionForge branch master updated. v6.0.5-2160-g92ce088

Marc-Etienne VARGENAU vargenau at libremir.placard.fr.eu.org
Mon Sep 11 17:01:11 CEST 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  92ce088d6fd6821308ad8d9c0223d7bb0ed618b0 (commit)
      from  b5e93f17d010d97ca71da5ddbdcdae025e9635ae (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=92ce088d6fd6821308ad8d9c0223d7bb0ed618b0

commit 92ce088d6fd6821308ad8d9c0223d7bb0ed618b0
Author: Marc-Etienne Vargenau <marc-etienne.vargenau at nokia.com>
Date:   Mon Sep 11 17:01:04 2017 +0200

    Avoid PHP warning: Only variables should be passed by reference

diff --git a/src/common/include/PluginManager.class.php b/src/common/include/PluginManager.class.php
index 38efefc..0f2edde 100644
--- a/src/common/include/PluginManager.class.php
+++ b/src/common/include/PluginManager.class.php
@@ -166,7 +166,7 @@ class PluginManager extends FFError {
 			if (file_exists($filename)) {
 				require_once($filename);
 				$p_class = $p_name.'Plugin';
-				register_plugin (new $p_class);
+				register_plugin(new $p_class);
 			}
 		}
 		return true;
@@ -210,7 +210,7 @@ class PluginManager extends FFError {
 	 * @param	object	$pluginobject	an object of a subclass of the Plugin class
 	 * @return	bool
 	 */
-	function RegisterPlugin(&$pluginobject) {
+	function RegisterPlugin($pluginobject) {
 		if (!$pluginobject->GetName()) {
 			exit_error(_("Some plugin did not provide a name. I'd gladly tell you which one, but obviously I cannot. Sorry."),'');
 		}
@@ -330,8 +330,8 @@ function &plugin_get_object($pluginname) {
  * @param	pluginobject - an object of a subclass of the Plugin class
  * @return	bool
  */
-function register_plugin(&$pluginobject) {
-	$pm =& plugin_manager_get_object();
+function register_plugin($pluginobject) {
+	$pm =&plugin_manager_get_object();
 	return $pm->RegisterPlugin($pluginobject);
 }
 

-----------------------------------------------------------------------

Summary of changes:
 src/common/include/PluginManager.class.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list