summaryrefslogtreecommitdiff
path: root/app/functions.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-12-13 20:22:38 -0500
committerFrederic Guillot <fred@kanboard.net>2016-12-13 20:22:38 -0500
commitb6ea1ac9a4cfe4b56a9e226f6087945f01fc57b8 (patch)
treea9d13e78c28ce439ae1d34cfce770eeaa4696e15 /app/functions.php
parent5964d5cb13a85468800cdb45d5239cffb25b6e43 (diff)
parent2ed00b69a032018d15e1986e4cfe5c89f63206c9 (diff)
Merge pull-request #2890
Diffstat (limited to 'app/functions.php')
-rw-r--r--app/functions.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/functions.php b/app/functions.php
index e732f308..9dd054fb 100644
--- a/app/functions.php
+++ b/app/functions.php
@@ -136,6 +136,16 @@ function build_app_version($ref, $commit_hash)
}
/**
+ * Get upload max size.
+ *
+ * @return string
+ */
+function get_upload_max_size()
+{
+ return min(ini_get('upload_max_filesize'), ini_get('post_max_size'));
+}
+
+/**
* Translate a string
*
* @return string