aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Setup.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-12-20 20:51:26 +0100
committerMax Kostikov <max@kostikov.co>2018-12-20 20:51:26 +0100
commit89e734dcca1525fa804343d6ecf5286ce70b05ba (patch)
tree10d0a3614e9f97f5065ea53fff1c3d5fcd292c16 /Zotlabs/Module/Setup.php
parent3a662555768840d18c6dbba027af644eda54f20e (diff)
parent090fe394e4733aea9e9ca2e9a93c2c27b266d065 (diff)
downloadvolse-hubzilla-89e734dcca1525fa804343d6ecf5286ce70b05ba.tar.gz
volse-hubzilla-89e734dcca1525fa804343d6ecf5286ce70b05ba.tar.bz2
volse-hubzilla-89e734dcca1525fa804343d6ecf5286ce70b05ba.zip
Merge branch 'dev' into 'dev'
Sync dev See merge request kostikov/core!1
Diffstat (limited to 'Zotlabs/Module/Setup.php')
-rw-r--r--Zotlabs/Module/Setup.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/Zotlabs/Module/Setup.php b/Zotlabs/Module/Setup.php
index c0716ca7c..370b7b9f8 100644
--- a/Zotlabs/Module/Setup.php
+++ b/Zotlabs/Module/Setup.php
@@ -441,13 +441,18 @@ class Setup extends \Zotlabs\Web\Controller {
require_once 'include/environment.php';
$help = '';
+ $mem_warning = '';
$result = getPhpiniUploadLimits();
+ if($result['post_max_size'] < 4194304 || $result['max_upload_filesize'] < 4194304) {
+ $mem_warning = '<strong>' .t('This is not sufficient to upload larger images or files. You should be able to upload at least 4 MB at once.') . '</strong>';
+ }
$help = sprintf(t('Your max allowed total upload size is set to %s. Maximum size of one file to upload is set to %s. You are allowed to upload up to %d files at once.'),
userReadableSize($result['post_max_size']),
userReadableSize($result['max_upload_filesize']),
$result['max_file_uploads']
);
+ $help .= $mem_warning;
$help .= '<br><br>' . t('You can adjust these settings in the server php.ini file.');
$this->check_add($checks, t('PHP upload limits'), true, false, $help);