diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-06-19 19:52:33 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-06-19 19:52:33 +0200 |
commit | 3bbe4e7424f12b4f870fb775b8230714a2862380 (patch) | |
tree | 925ee90ecc269ed5fad0426efed4e741ca3f3cd7 /plugins/attachment_reminder/attachment_reminder.php | |
parent | cd9e4154060ff38226e77eea82123519322b2327 (diff) | |
parent | b200258d5af08ff24065d58c96d8ccf834d1ffad (diff) |
Merge branch 'master' of github.com:roundcube/roundcubemail
Diffstat (limited to 'plugins/attachment_reminder/attachment_reminder.php')
-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') { |