mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-28 18:40:39 +00:00
get error msg from controller
This commit is contained in:
parent
ab7cef5666
commit
eae5699bdf
|
|
@ -91,7 +91,7 @@ elseif ($action == "upload") { /* {{{ */
|
||||||
$controller->setParam('extmgr', $extMgr);
|
$controller->setParam('extmgr', $extMgr);
|
||||||
$controller->setParam('file', $_FILES['userfile']['tmp_name']);
|
$controller->setParam('file', $_FILES['userfile']['tmp_name']);
|
||||||
if (!$controller($_POST)) {
|
if (!$controller($_POST)) {
|
||||||
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
|
UI::exitError(getMLText("admin_tools"),$controller->getErrorMsg());
|
||||||
}
|
}
|
||||||
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_extension_import')));
|
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_extension_import')));
|
||||||
add_log_line();
|
add_log_line();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user