mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 17:44:07 +02:00
Respect original memory_limit
This commit is contained in:
@@ -571,7 +571,7 @@ function get_file($key, $decompress = false) {
|
||||
* @return string
|
||||
*/
|
||||
function upload_error($error) {
|
||||
$max_size = ($error == UPLOAD_ERR_INI_SIZE ? ini_get("upload_max_filesize") : null); // post_max_size is checked in index.php
|
||||
$max_size = ($error == UPLOAD_ERR_INI_SIZE ? ini_get("upload_max_filesize") : 0); // post_max_size is checked in index.php
|
||||
return ($error ? lang('Unable to upload a file.') . ($max_size ? " " . lang('Maximum allowed file size is %sB.', $max_size) : "") : lang('File does not exist.'));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user