From b7d61aea43d7cece2bfb38be51be20b434ca4461 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 12 May 2020 12:02:22 +0200 Subject: [PATCH] back button can be turned off --- views/bootstrap/class.ErrorDlg.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/views/bootstrap/class.ErrorDlg.php b/views/bootstrap/class.ErrorDlg.php index 66bd63507..a58366fc5 100644 --- a/views/bootstrap/class.ErrorDlg.php +++ b/views/bootstrap/class.ErrorDlg.php @@ -37,6 +37,7 @@ class SeedDMS_View_ErrorDlg extends SeedDMS_Bootstrap_Style { $pagetitle = $this->params['pagetitle']; $errormsg = $this->params['errormsg']; $plain = $this->params['plain']; + $showbutton = $this->hasParam('nobackbutton') === false || $this->getParam('nobackbutton') === false; $settings = $this->params['settings']; if(!$plain) { @@ -49,7 +50,8 @@ class SeedDMS_View_ErrorDlg extends SeedDMS_Bootstrap_Style { print "

".getMLText('error')."!

"; print htmlspecialchars($errormsg); print ""; - print "
"; + if($showbutton) + print "
"; $this->contentEnd(); $this->htmlEndPage();