From 1115d08d2fdcf52dfc0fc59ee589456ba8e5e68a Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Sun, 12 Nov 2023 19:19:02 +0100 Subject: [PATCH] use instead of --- views/bootstrap/class.DocumentVersionDetail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/bootstrap/class.DocumentVersionDetail.php b/views/bootstrap/class.DocumentVersionDetail.php index c524764c3..d11d0ad94 100644 --- a/views/bootstrap/class.DocumentVersionDetail.php +++ b/views/bootstrap/class.DocumentVersionDetail.php @@ -379,7 +379,7 @@ class SeedDMS_View_DocumentVersionDetail extends SeedDMS_Theme_Style { if ($viewonlinefiletypes && (in_array(strtolower($version->getFileType()), $viewonlinefiletypes) || in_array(strtolower($version->getMimeType()), $viewonlinefiletypes))) if($accessop->check_controller_access('ViewOnline', array('action'=>'run'))) $items[] = array('link'=>$this->params['settings']->_httpRoot."op/op.ViewOnline.php?documentid=".$version->getDocument()->getId()."&version=". $version->getVersion(), 'icon'=>'eye', 'label'=>'view_online', 'target'=>'_blank'); - if($newitems = $this->callHook('extraVersionViews', $latestContent)) + if($newitems = $this->callHook('extraVersionViews', $version)) $items = array_merge($items, $newitems); if($items) { $this->showActions($items);