diff --git a/views/bootstrap/class.Search.php b/views/bootstrap/class.Search.php index 3dbfbe165..cc2df42ff 100644 --- a/views/bootstrap/class.Search.php +++ b/views/bootstrap/class.Search.php @@ -82,7 +82,10 @@ $(document).ready( function() { foreach($entries as $entry) { if(get_class($entry) == $dms->getClassname('document')) { $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', '');