Allow merging into files given by path

This commit is contained in:
Nathan Gray 2011-05-24 14:45:27 +00:00
parent 24b454a3fb
commit ab0522f774

View File

@ -861,7 +861,11 @@ function load_cal(url,id) {
'end' => is_array($this->last) ? $this->bo->date2ts($this->last) : $this->last
));
}
list($document, $filename) = explode('_',$_GET['merge'], 2);
if($_GET['merge'][0] != '/') {
list($document, $filename) = explode('_',$_GET['merge'], 2);
} else {
$filename = $_GET['merge'];
}
return calendar_uilist::download_document($timespan, $filename);
}
return false;