Skip to content

Commit 1fced26

Browse files
committed
Check for GD
1 parent 5974c0d commit 1fced26

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

userfrosting/controllers/InstallController.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,15 @@ public function pageSetupDB(){
105105
];
106106
}
107107

108+
// Check for GD library (required for Captcha)
109+
if (!(extension_loaded('gd') && function_exists('gd_info'))) {
110+
$messages[] = [
111+
"title" => "<i class='fa fa-warning'></i> GD library not installed",
112+
"message" => "We could not confirm that the <code>GD</code> library is installed and enabled. GD is an image processing library that UserFrosting uses to generate captcha codes for user account registration. If you don't need captcha, you can disable it in Site Settings and ignore this message.",
113+
"class" => "warning"
114+
];
115+
}
116+
108117
$this->_app->render('common/install/install-ready.html', [
109118
'page' => [
110119
'author' => $this->_app->site->author,

0 commit comments

Comments
 (0)