diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index caae6a61f..c650418a7 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -831,7 +831,10 @@ $(document).ready( function() { $items = array(); if ($file_exists){ if($islatest && $accessobject->mayEditVersion()) { - $items[] = array('link'=>$this->html_url('EditOnline', array('documentid'=>$latestContent->getDocument()->getId(), 'version'=>$latestContent->getVersion())), 'icon'=>'edit', 'label'=>'edit_version'); + if($this->theme == 'bootstrap4') + $items[] = array('link'=>$this->html_url('EditMarkdown', array('documentid'=>$latestContent->getDocument()->getId(), 'version'=>$latestContent->getVersion())), 'icon'=>'edit', 'label'=>'edit_version'); + else + $items[] = array('link'=>$this->html_url('EditOnline', array('documentid'=>$latestContent->getDocument()->getId(), 'version'=>$latestContent->getVersion())), 'icon'=>'edit', 'label'=>'edit_version'); } } /* Only admin has the right to remove version in any case or a regular