[Svn] r2300 - branches/devel-api/program/include

trac at roundcube.net trac at roundcube.net
Wed Feb 18 19:37:32 CET 2009


Author: ksteinhoff
Date: 2009-02-18 12:37:32 -0600 (Wed, 18 Feb 2009)
New Revision: 2300

Modified:
   branches/devel-api/program/include/rcube_user.php
Log:
Using existing instance of rcmail to call plugin hook.


Modified: branches/devel-api/program/include/rcube_user.php
===================================================================
--- branches/devel-api/program/include/rcube_user.php	2009-02-18 07:12:04 UTC (rev 2299)
+++ branches/devel-api/program/include/rcube_user.php	2009-02-18 18:37:32 UTC (rev 2300)
@@ -350,7 +350,7 @@
     $user_email = '';
     $rcmail = rcmail::get_instance();
 
-    $data = rcmail::get_instance()->plugins->exec_hook('create_user', array('RCMAIL'=>$rcmail, 'user'=>$user, 'user_name'=>$user_name, 'user_email'=>$user_email));
+    $data = $rcmail->plugins->exec_hook('create_user', array('user'=>$user, 'user_name'=>$user_name, 'user_email'=>$user_email));
     $user_name = $data['user_name'];
     $user_email = $data['user_email'];
 

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list