Add preview pane to advanced default template. This serves as an example of how...
[squirrelmail.git] / plugins / change_password / functions.php
index 25d59a66003e5386d7374b51fd558f9dc954e9ca..f956ef7f3eeed2019850c0742f1efe14a4f32814 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * functions.php - Change Password plugin
  *
- * @copyright © 2003-2005 The SquirrelMail Project Team
+ * @copyright © 2003-2007 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package plugins
@@ -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