mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 16:35:38 +00:00
set date of attachment
This commit is contained in:
parent
da972bbc2b
commit
074aee914d
|
@ -764,7 +764,7 @@ function insert_document($document) { /* {{{ */
|
|||
$filename = tempnam('/tmp', 'FOO');
|
||||
file_put_contents($filename, $filecontents);
|
||||
}
|
||||
$newDocument->addDocumentFile(
|
||||
$newfile = $newDocument->addDocumentFile(
|
||||
$file['attributes']['name'],
|
||||
$file['attributes']['comment'],
|
||||
$owner,
|
||||
|
@ -775,6 +775,7 @@ function insert_document($document) { /* {{{ */
|
|||
$file['attributes']['version'],
|
||||
$file['attributes']['public']
|
||||
);
|
||||
$newfile->setDate(dateToTimestamp($file['attributes']['date']));
|
||||
unlink($filename);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user