Add some notice

This commit is contained in:
slawkens 2020-02-25 20:36:04 +01:00
parent a467b55054
commit ed2f325ce1

View File

@ -17,7 +17,7 @@ echo $twig->render('admin.plugins.form.html.twig');
if(isset($_REQUEST['uninstall'])){ if(isset($_REQUEST['uninstall'])){
$uninstall = $_REQUEST['uninstall']; $uninstall = $_REQUEST['uninstall'];
if(Plugins::uninstall($uninstall)) { if(Plugins::uninstall($uninstall)) {
success('Successfully uninstalled plugin ' . $uninstall); success('Successfully uninstalled plugin ' . $uninstall);
} }
@ -43,7 +43,7 @@ else if(isset($_FILES["plugin"]["name"]))
break; break;
case UPLOAD_ERR_INI_SIZE: case UPLOAD_ERR_INI_SIZE:
case UPLOAD_ERR_FORM_SIZE: case UPLOAD_ERR_FORM_SIZE:
$error .= ' - file too large (limit of '.ini_get('upload_max_filesize').' bytes).'; $error .= ' - file too large (limit of '.ini_get('upload_max_filesize').' bytes). You can enlarge the limits by changing "upload_max_filesize" in php.ini';
break; break;
case UPLOAD_ERR_PARTIAL: case UPLOAD_ERR_PARTIAL:
$error .= ' - file upload was not completed.'; $error .= ' - file upload was not completed.';
@ -78,7 +78,7 @@ else if(isset($_FILES["plugin"]["name"]))
} }
else else
error(Plugins::getError()); error(Plugins::getError());
unlink($targetzip); // delete the Zipped file unlink($targetzip); // delete the Zipped file
} }
else else