summaryrefslogtreecommitdiff
path: root/plugins/subscriptions_option/subscriptions_option.php
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2009-10-28 16:26:37 +0000
committerthomascube <thomas@roundcube.net>2009-10-28 16:26:37 +0000
commitee507cb18d8088ad8ab378ab2955690037dbd53e (patch)
tree3838c074b18d44d37be7d426327b09459a5fbe35 /plugins/subscriptions_option/subscriptions_option.php
parentdba307ffd9dcc2bb9cb5966036709691b9e5026e (diff)
Add localizations for subscriptions_option and new_user_dialog plugins
Diffstat (limited to 'plugins/subscriptions_option/subscriptions_option.php')
-rw-r--r--plugins/subscriptions_option/subscriptions_option.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/subscriptions_option/subscriptions_option.php b/plugins/subscriptions_option/subscriptions_option.php
index 09ee6e3df..ecbc4e238 100644
--- a/plugins/subscriptions_option/subscriptions_option.php
+++ b/plugins/subscriptions_option/subscriptions_option.php
@@ -46,9 +46,9 @@ class subscriptions_option extends rcube_plugin
$checkbox = new html_checkbox(array('name' => '_use_subscriptions', 'id' => $field_id, 'value' => 1));
$args['blocks']['main']['options']['use_subscriptions'] = array(
- 'title' => html::label($field_id, Q($this->gettext('useimapsubscriptions'))),
+ 'title' => html::label($field_id, Q($this->gettext('useimapsubscriptions'))),
'content' => $checkbox->show($use_subscriptions?1:0),
- );
+ );
}
return $args;
@@ -57,18 +57,18 @@ class subscriptions_option extends rcube_plugin
function save_prefs($args)
{
if ($args['section'] == 'server') {
- $rcmail = rcmail::get_instance();
+ $rcmail = rcmail::get_instance();
$use_subscriptions = $rcmail->config->get('use_subscriptions');
- $args['prefs']['use_subscriptions'] = isset($_POST['_use_subscriptions']) ? true : false;
+ $args['prefs']['use_subscriptions'] = isset($_POST['_use_subscriptions']) ? true : false;
- // if the use_subscriptions preference changes, flush the folder cache
- if (($use_subscriptions && !isset($_POST['_use_subscriptions'])) ||
- (!$use_subscriptions && isset($_POST['_use_subscriptions']))) {
- $rcmail->imap_init(true);
- $rcmail->imap->clear_cache('mailboxes');
- }
- }
+ // if the use_subscriptions preference changes, flush the folder cache
+ if (($use_subscriptions && !isset($_POST['_use_subscriptions'])) ||
+ (!$use_subscriptions && isset($_POST['_use_subscriptions']))) {
+ $rcmail->imap_init(true);
+ $rcmail->imap->clear_cache('mailboxes');
+ }
+ }
return $args;
}