diff options
author | David Rothstein <drothstein@gmail.com> | 2014-05-05 19:08:37 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2014-05-05 19:08:37 -0400 |
commit | 23d45a332e385165f1f7ba788b2a0d84f79492a2 (patch) | |
tree | 5202cd89e327c7dda6cfe5ac8b0ad3645c8780a6 /modules | |
parent | 106a1e1adbb4e8ac1329a88208906cdde8076e48 (diff) | |
download | brdo-23d45a332e385165f1f7ba788b2a0d84f79492a2.tar.gz brdo-23d45a332e385165f1f7ba788b2a0d84f79492a2.tar.bz2 |
Issue #2161955 by wiifm, mikeytown2, dawehner: Remove get_extension_funcs() call to improve HHVM compatibility .
Diffstat (limited to 'modules')
-rw-r--r-- | modules/system/image.gd.inc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/modules/system/image.gd.inc b/modules/system/image.gd.inc index 91c0b05ff..eb5b80a70 100644 --- a/modules/system/image.gd.inc +++ b/modules/system/image.gd.inc @@ -56,13 +56,8 @@ function image_gd_settings_validate($form, &$form_state) { * A boolean indicating if the GD toolkit is available on this machine. */ function image_gd_check_settings() { - if ($check = get_extension_funcs('gd')) { - if (in_array('imagegd2', $check)) { - // GD2 support is available. - return TRUE; - } - } - return FALSE; + // GD2 support is available. + return function_exists('imagegd2'); } /** |