mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
two more specific error msg when uploading new extension
This commit is contained in:
parent
c2e50623c6
commit
b34486d701
|
@ -76,10 +76,10 @@ elseif ($action == "upload") { /* {{{ */
|
|||
UI::exitError(getMLText("admin_tools"),getMLText("extension_mgr_no_upload"));
|
||||
}
|
||||
if($_FILES['userfile']['error']) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("extension_mgr_error_upload"));
|
||||
}
|
||||
if(!in_array($_FILES['userfile']['type'], array('application/zip', 'application/x-zip-compressed'))) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("extension_mgr_no_zipfile"));
|
||||
}
|
||||
// $extMgr = new SeedDMS_Extension_Mgr($settings->_rootDir."/ext", $settings->_cacheDir);
|
||||
$controller->setParam('extmgr', $extMgr);
|
||||
|
|
Loading…
Reference in New Issue
Block a user