summaryrefslogtreecommitdiff
path: root/plugins/kolab_config/kolab_config.php
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2012-06-06 08:24:28 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2012-06-06 08:24:28 (GMT)
commit0bd829aa6f9ba4948045a1f7ef69c1146c4d5bac (patch)
tree82ca31e128ca96edf7cbbf86eb3f025742b773b0 /plugins/kolab_config/kolab_config.php
parentad59203f274940e9263a6bdd86c0cb5abe914b2a (diff)
downloadroundcubemail-plugins-kolab-0bd829aa6f9ba4948045a1f7ef69c1146c4d5bac.tar.gz
Finish reading/writing of Dictionary configuration objects
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