Massive update to plugin system architecture. Please test! Not all core plugins...
[squirrelmail.git] / plugins / change_password / functions.php
index a0cd81dc6187426581c5f70e3db34f74231acfa3..9e180f6f0f8c841e6577452069b79ece3a45c9d8 100644 (file)
@@ -85,11 +85,11 @@ function cpw_do_change()
 
     require_once(SM_PATH . 'plugins/change_password/backend/'.$cpw_backend.'.php');
 
-    $msgs = do_hook_function('change_password_dochange',
-        array (
-            'username' => $username,
-            'curpw' => $curpw,
-            'newpw' => $newpw
+    $msgs = do_hook('change_password_dochange',
+        $temp=array (
+            'username' => &$username,
+            'curpw' => &$curpw,
+            'newpw' => &$newpw
         ) );
 
     /* something bad happened, return */