mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
get error msg from controller if set
This commit is contained in:
parent
0173de81cf
commit
fc0d7e22e5
|
@ -90,7 +90,11 @@ $controller->setParam('document', $document);
|
||||||
$controller->setParam('index', $index);
|
$controller->setParam('index', $index);
|
||||||
$controller->setParam('indexconf', $indexconf);
|
$controller->setParam('indexconf', $indexconf);
|
||||||
if(!$controller->run()) {
|
if(!$controller->run()) {
|
||||||
UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($docname))),getMLText("error_remove_document"));
|
if ($controller->getErrorMsg() != '')
|
||||||
|
$errormsg = $controller->getErrorMsg();
|
||||||
|
else
|
||||||
|
$errormsg = "error_remove_document";
|
||||||
|
UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($docname))),getMLText($errormsg));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($notifier){
|
if ($notifier){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user