mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-16 22:51:32 +00:00
call hook 'rawcontent' when downloading search result with content
This commit is contained in:
parent
10b62bc7fb
commit
dde99fa150
|
@ -82,7 +82,10 @@ $(document).ready( function() {
|
||||||
foreach($entries as $entry) {
|
foreach($entries as $entry) {
|
||||||
if(get_class($entry) == $dms->getClassname('document')) {
|
if(get_class($entry) == $dms->getClassname('document')) {
|
||||||
$extracols = $this->callHook('extraDownloadColumns', $entry);
|
$extracols = $this->callHook('extraDownloadColumns', $entry);
|
||||||
$downmgr->addItem($entry->getLatestContent(), $extracols);
|
if(isset($_GET['includecontent']) && $_GET['includecontent'] && $rawcontent = $this->callHook('rawcontent', $entry->getLatestContent())) {
|
||||||
|
$downmgr->addItem($entry->getLatestContent(), $extracols, $rawcontent);
|
||||||
|
} else
|
||||||
|
$downmgr->addItem($entry->getLatestContent(), $extracols);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$filename = tempnam('/tmp', '');
|
$filename = tempnam('/tmp', '');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user