From 0fe6826dea43672464c3c159302fc1273e02d3cb Mon Sep 17 00:00:00 2001 From: pdontthink Date: Sun, 10 Dec 2006 20:11:29 +0000 Subject: [PATCH] Revert last commit; passing by reference like that causes deprecation PHP notices in PHP4. It is the responsibility of the receiving plugin to accept the args by reference if it intends to change its value. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11995 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/plugin.php b/functions/plugin.php index 20ccf4c3..9e155e6e 100644 --- a/functions/plugin.php +++ b/functions/plugin.php @@ -80,7 +80,7 @@ function do_hook($name, &$args) { foreach ($squirrelmail_plugin_hooks[$name] as $plugin_name => $function) { use_plugin($plugin_name); if (function_exists($function)) { - $ret = $function(&$args, $ret); + $ret = $function($args, $ret); } } } -- 2.25.1