Browse Source

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.

pdontthink 18 years ago
parent
commit
d84b99123c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      functions/plugin.php

+ 1 - 1
functions/plugin.php

@@ -80,7 +80,7 @@ function do_hook($name, &$args) {
         foreach ($squirrelmail_plugin_hooks[$name] as $plugin_name => $function) {
         foreach ($squirrelmail_plugin_hooks[$name] as $plugin_name => $function) {
             use_plugin($plugin_name);
             use_plugin($plugin_name);
             if (function_exists($function)) {
             if (function_exists($function)) {
-                $ret = $function(&$args, $ret);
+                $ret = $function($args, $ret);
             }
             }
         }
         }
     }
     }