aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-23 15:25:48 -0500
committerCash Costello <cash.costello@gmail.com>2011-11-23 15:25:48 -0500
commit4bfbb194ec1f9fc2647d1cb4e946fb95492076d6 (patch)
tree2e818635b8ae236cbefe0ccf55e29b23f369d6b7 /lib
parent9b814dd2124a8c71dec3a8d510d288f040b03b9e (diff)
downloadelgg-4bfbb194ec1f9fc2647d1cb4e946fb95492076d6.tar.gz
elgg-4bfbb194ec1f9fc2647d1cb4e946fb95492076d6.tar.bz2
settings are good enough for a preview release now
Diffstat (limited to 'lib')
-rw-r--r--lib/tidypics.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/tidypics.php b/lib/tidypics.php
index 7eedb246d..0a4586c29 100644
--- a/lib/tidypics.php
+++ b/lib/tidypics.php
@@ -91,6 +91,23 @@ function tidypics_prepare_form_vars($entity = null) {
return $values;
}
+function tidypics_get_image_libraries() {
+ $options = array();
+ if (extension_loaded('gd')) {
+ $options['GD'] = 'GD';
+ }
+
+ if (extension_loaded('imagick')) {
+ $options['ImageMagickPHP'] = 'imagick PHP extension';
+ }
+
+ $disablefunc = explode(',', ini_get('disable_functions'));
+ if (is_callable('exec') && !in_array('exec', $disablefunc)) {
+ $options['ImageMagick'] = 'ImageMagick executable';
+ }
+
+ return $options;
+}
/*********************************************************************
* the functions below replace broken core functions or add functions