From beaa54ac924786cbb7cb2bdd0df99ea91efb6c41 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Sun, 13 Dec 2020 14:45:55 +0100 Subject: [PATCH] call hook folderListItem --- views/bootstrap/class.Search.php | 5 +++++ 1 file changed, 5 insertions(+) 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";