mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-09-08 10:59:03 +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');
|
$filename = tempnam('/tmp', 'FOO');
|
||||||
file_put_contents($filename, $filecontents);
|
file_put_contents($filename, $filecontents);
|
||||||
}
|
}
|
||||||
$newDocument->addDocumentFile(
|
$newfile = $newDocument->addDocumentFile(
|
||||||
$file['attributes']['name'],
|
$file['attributes']['name'],
|
||||||
$file['attributes']['comment'],
|
$file['attributes']['comment'],
|
||||||
$owner,
|
$owner,
|
||||||
|
@ -775,6 +775,7 @@ function insert_document($document) { /* {{{ */
|
||||||
$file['attributes']['version'],
|
$file['attributes']['version'],
|
||||||
$file['attributes']['public']
|
$file['attributes']['public']
|
||||||
);
|
);
|
||||||
|
$newfile->setDate(dateToTimestamp($file['attributes']['date']));
|
||||||
unlink($filename);
|
unlink($filename);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user