force exitError() to not exit

added optional parameter noexit
This commit is contained in:
Uwe Steinmann 2014-03-04 08:30:32 +01:00
parent e775437f74
commit 598be765c6

View File

@ -963,7 +963,7 @@ function clearFilename<?php print $formName ?>() {
echo "</div>\n";
} /* }}} */
function exitError($pagetitle,$error) { /* {{{ */
function exitError($pagetitle, $error, $noexit=false) { /* {{{ */
$this->htmlStartPage($pagetitle);
$this->globalNavigation();
@ -978,7 +978,10 @@ function clearFilename<?php print $formName ?>() {
$this->htmlEndPage();
add_log_line(" UI::exitError error=".$error." pagetitle=".$pagetitle);
if($noexit)
return;
exit;
} /* }}} */