Support 'file' objects
This commit is contained in:
parent
e6b10dae74
commit
17ceedc47b
1 changed files with 2 additions and 2 deletions
|
@ -81,7 +81,7 @@ case 'clear':
|
||||||
if (!$db->is_connected() || $db->is_error())
|
if (!$db->is_connected() || $db->is_error())
|
||||||
die("No DB connection\n");
|
die("No DB connection\n");
|
||||||
|
|
||||||
$folder_types = $opts['type'] ? explode(',', $opts['type']) : array('contact','distribution-list','event','task','configuration');
|
$folder_types = $opts['type'] ? explode(',', $opts['type']) : array('contact','distribution-list','event','task','configuration','file');
|
||||||
$folder_types_db = array_map(array($db, 'quote'), $folder_types);
|
$folder_types_db = array_map(array($db, 'quote'), $folder_types);
|
||||||
|
|
||||||
if ($opts['all']) {
|
if ($opts['all']) {
|
||||||
|
@ -106,7 +106,7 @@ case 'prewarm':
|
||||||
$rcmail->plugins->load_plugin('libkolab');
|
$rcmail->plugins->load_plugin('libkolab');
|
||||||
|
|
||||||
if (authenticate($opts)) {
|
if (authenticate($opts)) {
|
||||||
$folder_types = $opts['type'] ? explode(',', $opts['type']) : array('contact','event','task','configuration');
|
$folder_types = $opts['type'] ? explode(',', $opts['type']) : array('contact','event','task','configuration','file');
|
||||||
foreach ($folder_types as $type) {
|
foreach ($folder_types as $type) {
|
||||||
// sync every folder of the given type
|
// sync every folder of the given type
|
||||||
foreach (kolab_storage::get_folders($type) as $folder) {
|
foreach (kolab_storage::get_folders($type) as $folder) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue