diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-01-13 08:20:30 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-01-13 08:20:30 +0000 |
| commit | c39d008ec66c5c528f63f760083f7c6d253395db (patch) | |
| tree | 1131eedfbecc11fcdb239f9afc04dc356809d70b /plugins/show_additional_headers/show_additional_headers.php | |
| parent | 255033a27f13b7d6ffbd0e1079301949d792f185 (diff) | |
- Use storage object
git-svn-id: https://svn.roundcube.net/trunk@5764 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins/show_additional_headers/show_additional_headers.php')
| -rw-r--r-- | plugins/show_additional_headers/show_additional_headers.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/show_additional_headers/show_additional_headers.php b/plugins/show_additional_headers/show_additional_headers.php index 78fd6be5a..cc71421ee 100644 --- a/plugins/show_additional_headers/show_additional_headers.php +++ b/plugins/show_additional_headers/show_additional_headers.php @@ -16,20 +16,20 @@ class show_additional_headers extends rcube_plugin { public $task = 'mail'; - + function init() { $rcmail = rcmail::get_instance(); if ($rcmail->action == 'show' || $rcmail->action == 'preview') { - $this->add_hook('imap_init', array($this, 'imap_init')); + $this->add_hook('storage_init', array($this, 'storage_init')); $this->add_hook('message_headers_output', array($this, 'message_headers')); } else if ($rcmail->action == '') { // with enabled_caching we're fetching additional headers before show/preview - $this->add_hook('imap_init', array($this, 'imap_init')); + $this->add_hook('storage_init', array($this, 'storage_init')); } } - - function imap_init($p) + + function storage_init($p) { $rcmail = rcmail::get_instance(); if ($add_headers = (array)$rcmail->config->get('show_additional_headers', array())) |
