diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-11-08 11:00:39 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-11-08 11:09:06 -0800 |
commit | 97a5656296e617e7dd2f55cc1eb3f1d34e7163f5 (patch) | |
tree | b1383bb1cb88014d9999ca5290b65609cd47b336 | |
parent | 35d933cf7f8db4cfa79e4985e6b38433f4457a45 (diff) |
Check for the PHP Ctype extension. Fixes ticket #1474.
-rw-r--r-- | installer/installer.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/installer/installer.php b/installer/installer.php index 53a5e3db..9a957b43 100644 --- a/installer/installer.php +++ b/installer/installer.php @@ -229,6 +229,10 @@ class installer { $errors[] = "Gallery requires <a href=\"http://php.net/manual/en/ini.core.php\">short_open_tag</a> to be on. Please enable it in your php.ini."; } + if (!function_exists("ctype_alpha")) { + $errors[] = "Gallery requires the <a href=\"http://php.net/manual/en/book.ctype.php\">PHP Ctype</a> extension. Please install it."; + } + return @$errors; } |