Make the 'append' option work.

This commit is contained in:
Andrew McMillan 2012-01-17 08:08:36 +13:00
parent 3f8fafccb6
commit 9b5554eac8

View File

@ -108,9 +108,10 @@ if ( $can_write_collection && $editor->IsSubmit() ) {
$path = $editor->Value('dav_name');
$user_no = $editor->Value('user_no');
$username = $editor->Value('username');
param_to_global('mode');
include_once('caldav-PUT-functions.php');
controlRequestContainer( $username, $user_no, $path, false, ($publicly_readable == 'on' ? true : false));
import_collection( $ics, $user_no, $path, $session->user_no );
import_collection( $ics, $user_no, $path, $session->user_no, ($mode == 'append') );
$c->messages[] = sprintf(translate('Calendar "%s" was loaded from file.'), $path);
}
else {