use instead of

This commit is contained in:
Uwe Steinmann 2023-11-12 19:19:02 +01:00
parent cd0a5c9844
commit 1115d08d2f

View File

@ -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);