diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-06-19 08:54:59 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-06-19 08:54:59 +0200 |
commit | 4e12fd5c82b9e299a9eb91bb6e0bb09c47090a16 (patch) | |
tree | c0f63d4a4af29bc8216e90b9497120c3829146ee /plugins | |
parent | c9ed4bfa7a6613be98c575107158c43012015008 (diff) |
Fix so attachment_reminder=false really disables the reminder action
Diffstat (limited to 'plugins')
-rwxr-xr-x | plugins/attachment_reminder/attachment_reminder.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/attachment_reminder/attachment_reminder.php b/plugins/attachment_reminder/attachment_reminder.php index a215ff57c..82ad7a60e 100755 --- a/plugins/attachment_reminder/attachment_reminder.php +++ b/plugins/attachment_reminder/attachment_reminder.php @@ -36,9 +36,11 @@ class attachment_reminder extends rcube_plugin $rcmail = rcube::get_instance(); if ($rcmail->task == 'mail' && $rcmail->action == 'compose') { - $this->include_script('attachment_reminder.js'); - $this->add_texts('localization/', array('keywords', 'forgotattachment')); - $rcmail->output->add_label('addattachment', 'send'); + if ($rcmail->config->get('attachment_reminder')) { + $this->include_script('attachment_reminder.js'); + $this->add_texts('localization/', array('keywords', 'forgotattachment')); + $rcmail->output->add_label('addattachment', 'send'); + } } if ($rcmail->task == 'settings') { |