summaryrefslogtreecommitdiff
path: root/plugins/libkolab/lib/kolab_format_configuration.php
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2013-04-19 12:20:55 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2013-04-19 12:20:55 (GMT)
commite03156fc1f03c9968915c31aa63cfdcd5b5099d9 (patch)
treea07bdd5381e03be59a9e98b890df2e97af429f41 /plugins/libkolab/lib/kolab_format_configuration.php
parent08332b5238d4fa0357c3e24cc18c2287c3a18954 (diff)
downloadroundcubemail-plugins-kolab-e03156fc1f03c9968915c31aa63cfdcd5b5099d9.tar.gz
Implemented new method of storing filename and mimetype of file objects
Diffstat (limited to 'plugins/libkolab/lib/kolab_format_configuration.php')
-rw-r--r--plugins/libkolab/lib/kolab_format_configuration.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/plugins/libkolab/lib/kolab_format_configuration.php b/plugins/libkolab/lib/kolab_format_configuration.php
index 5e64e30..104d90f 100644
--- a/plugins/libkolab/lib/kolab_format_configuration.php
+++ b/plugins/libkolab/lib/kolab_format_configuration.php
@@ -98,16 +98,12 @@ class kolab_format_configuration extends kolab_format
if (!empty($this->data))
return $this->data;
- $this->init();
+ // read common object props into local data object
+ $object = parent::to_array($data);
+
$type_map = array_flip($this->type_map);
- // read object properties
- $object = array(
- 'uid' => $this->obj->uid(),
- 'created' => self::php_datetime($this->obj->created()),
- 'changed' => self::php_datetime($this->obj->lastModified()),
- 'type' => $type_map[$this->obj->type()],
- );
+ $object['type'] = $type_map[$this->obj->type()];
// read type-specific properties
switch ($object['type']) {