summaryrefslogtreecommitdiff
path: root/plugins/kolab_config/kolab_config.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/kolab_config/kolab_config.php')
-rw-r--r--plugins/kolab_config/kolab_config.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/kolab_config/kolab_config.php b/plugins/kolab_config/kolab_config.php
index 3433056..9135467 100644
--- a/plugins/kolab_config/kolab_config.php
+++ b/plugins/kolab_config/kolab_config.php
@@ -102,7 +102,7 @@ class kolab_config extends rcube_plugin
$lang = $args['language'];
$dict = $this->read_dictionary($lang, true);
-
+console($lang, $dict);
$dict['type'] = 'dictionary';
$dict['language'] = $args['language'];
$dict['e'] = $args['dictionary'];
@@ -113,7 +113,7 @@ class kolab_config extends rcube_plugin
}
else {
// Update the object
- // $this->default->save($dict);
+ $this->default->save($dict, 'configuration.dictionary', $dict['uid']);
}
$args['abort'] = true;
@@ -160,7 +160,7 @@ class kolab_config extends rcube_plugin
if (isset($this->dicts[$lang]))
return $this->dicts[$lang];
- $query = array(array('type','=','configuration.dictionary'), array('tags','=',' '.$lang.' '));
+ $query = array(array('type','=','configuration.dictionary'), array('tags','=',$lang));
foreach ($this->folders as $folder) {
// we only want to read from default folder