diff --git a/views/bootstrap/class.Search.php b/views/bootstrap/class.Search.php
index c35e684b4..0fa8a8657 100644
--- a/views/bootstrap/class.Search.php
+++ b/views/bootstrap/class.Search.php
@@ -634,6 +634,10 @@ foreach($facets as $facetname=>$values) {
print $this->documentListRow($document, $previewer, false, 0, $extracontent);
}
} elseif($entry->isType('folder')) {
+ $txt = $this->callHook('folderListItem', $entry, false, 'search');
+ if(is_string($txt))
+ echo $txt;
+ else {
$folder = $entry;
$owner = $folder->getOwner();
if (in_array(2, $searchin)) {
@@ -657,6 +661,7 @@ foreach($facets as $facetname=>$values) {
if($attrstr)
$extracontent['bottom_title'] = '
'.$this->printPopupBox(''.getMLText('attributes').'', $attrstr, true);
print $this->folderListRow($folder, false, $extracontent);
+ }
}
}
print "\n";