Changeset 3983 in subversion
- Timestamp:
- Sep 22, 2010 7:00:27 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/squirrelmail_usercopy/squirrelmail_usercopy.php
r3899 r3983 17 17 public function init() 18 18 { 19 $rcmail = rcmail::get_instance();20 21 // Set identities_level for operations of this plugin22 $ilevel = $rcmail->config->get('squirrelmail_identities_level');23 if ($ilevel === null)24 $ilevel = $rcmail->config->get('identities_level', 0);25 $this->identities_level = intval($ilevel);26 27 19 $this->add_hook('user_create', array($this, 'create_user')); 28 20 $this->add_hook('identity_create', array($this, 'create_identity')); … … 31 23 public function create_user($p) 32 24 { 25 // Read plugin's config 26 $this->initialize(); 27 33 28 // read prefs and add email address 34 29 $this->read_squirrel_prefs($p['user']); … … 85 80 } 86 81 82 private function initialize() 83 { 84 $rcmail = rcmail::get_instance(); 85 86 // Load plugin's config file 87 $this->load_config(); 88 89 // Set identities_level for operations of this plugin 90 $ilevel = $rcmail->config->get('squirrelmail_identities_level'); 91 if ($ilevel === null) 92 $ilevel = $rcmail->config->get('identities_level', 0); 93 94 $this->identities_level = intval($ilevel); 95 } 96 87 97 private function read_squirrel_prefs($uname) 88 98 { 89 $this->load_config();90 99 $rcmail = rcmail::get_instance(); 91 100
Note: See TracChangeset
for help on using the changeset viewer.
