Massive update to plugin system architecture. Please test! Not all core plugins...
[squirrelmail.git] / plugins / change_password / functions.php
index 0c7adaf56d68877c5bdbac5ecd4da31a7e9c2061..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 */
@@ -109,4 +109,3 @@ function cpw_do_change()
     exit;
 }
 
-?>
\ No newline at end of file