From 1c359cb701c8dfe87b555dbf690e99c379329a24 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 2 Mar 2017 08:40:46 +0100 Subject: [PATCH] pass context to hook documentListItem --- views/bootstrap/class.Search.php | 2 +- views/bootstrap/class.ViewFolder.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/views/bootstrap/class.Search.php b/views/bootstrap/class.Search.php index 7971fd387..ca800c816 100644 --- a/views/bootstrap/class.Search.php +++ b/views/bootstrap/class.Search.php @@ -466,7 +466,7 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style { $previewer = new SeedDMS_Preview_Previewer($cachedir, $previewwidth, $timeout); foreach ($entries as $entry) { if(get_class($entry) == $dms->getClassname('document')) { - $txt = $this->callHook('documentListItem', $entry, $previewer); + $txt = $this->callHook('documentListItem', $entry, $previewer, 'search'); if(is_string($txt)) echo $txt; else { diff --git a/views/bootstrap/class.ViewFolder.php b/views/bootstrap/class.ViewFolder.php index 4300119c8..31811cc2a 100644 --- a/views/bootstrap/class.ViewFolder.php +++ b/views/bootstrap/class.ViewFolder.php @@ -315,7 +315,7 @@ function folderSelected(id, name) { foreach($documents as $document) { $document->verifyLastestContentExpriry(); - $txt = $this->callHook('documentListItem', $document, $previewer); + $txt = $this->callHook('documentListItem', $document, $previewer, 'viewfolder'); if(is_string($txt)) echo $txt; else {