summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-12-05 20:33:30 -0500
committerFrederic Guillot <fred@kanboard.net>2015-12-05 20:33:30 -0500
commitbd313f94266e6f6d60caf2c55216e604bd25bcb3 (patch)
tree5a6418bb81a7e7dfd5ea9ecbb35d409c0c8f8286 /app
parente9fedf3e5cd63aea4da7a71f6647ee427c62fa49 (diff)
Add check for gd extension
Diffstat (limited to 'app')
-rw-r--r--app/check_setup.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/app/check_setup.php b/app/check_setup.php
index be52a718..ec389834 100644
--- a/app/check_setup.php
+++ b/app/check_setup.php
@@ -21,12 +21,17 @@ if (version_compare(PHP_VERSION, '5.4.0', '<')) {
// Check extension: PDO
if (! extension_loaded('pdo_sqlite') && ! extension_loaded('pdo_mysql') && ! extension_loaded('pdo_pgsql')) {
- throw new Exception('PHP extension required: pdo_sqlite or pdo_mysql or pdo_pgsql');
+ throw new Exception('PHP extension required: "pdo_sqlite" or "pdo_mysql" or "pdo_pgsql"');
}
// Check extension: mbstring
if (! extension_loaded('mbstring')) {
- throw new Exception('PHP extension required: mbstring');
+ throw new Exception('PHP extension required: "mbstring"');
+}
+
+// Check extension: gd
+if (! extension_loaded('gd')) {
+ throw new Exception('PHP extension required: "gd"');
}
// Fix wrong value for arg_separator.output, used by the function http_build_query()