diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-12-05 20:33:30 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-12-05 20:33:30 -0500 |
commit | bd313f94266e6f6d60caf2c55216e604bd25bcb3 (patch) | |
tree | 5a6418bb81a7e7dfd5ea9ecbb35d409c0c8f8286 /app/check_setup.php | |
parent | e9fedf3e5cd63aea4da7a71f6647ee427c62fa49 (diff) |
Add check for gd extension
Diffstat (limited to 'app/check_setup.php')
-rw-r--r-- | app/check_setup.php | 9 |
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() |