diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 2261bc5e8..fa5c2e2c8 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -963,7 +963,7 @@ function clearFilename() { echo "\n"; } /* }}} */ - function exitError($pagetitle,$error) { /* {{{ */ + function exitError($pagetitle, $error, $noexit=false) { /* {{{ */ $this->htmlStartPage($pagetitle); $this->globalNavigation(); @@ -978,7 +978,10 @@ function clearFilename() { $this->htmlEndPage(); add_log_line(" UI::exitError error=".$error." pagetitle=".$pagetitle); - + + if($noexit) + return; + exit; } /* }}} */