aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/captcha/plugins/phpbb_captcha_gd_plugin.php
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2012-11-10 11:25:22 +0100
committerIgor Wiedler <igor@wiedler.ch>2012-11-10 11:25:22 +0100
commit195014867ae84fe04ec01c913e38bf1d435590f7 (patch)
tree2a8264f69a801264a9912828e572782e28a2a897 /phpBB/includes/captcha/plugins/phpbb_captcha_gd_plugin.php
parent957508c8b1a71c603c31728dfab79640554c541e (diff)
downloadforums-195014867ae84fe04ec01c913e38bf1d435590f7.tar
forums-195014867ae84fe04ec01c913e38bf1d435590f7.tar.gz
forums-195014867ae84fe04ec01c913e38bf1d435590f7.tar.bz2
forums-195014867ae84fe04ec01c913e38bf1d435590f7.tar.xz
forums-195014867ae84fe04ec01c913e38bf1d435590f7.zip
[ticket/11183] Remove $load_extensions and weird dl() calls
PHPBB3-11183
Diffstat (limited to 'phpBB/includes/captcha/plugins/phpbb_captcha_gd_plugin.php')
-rw-r--r--phpBB/includes/captcha/plugins/phpbb_captcha_gd_plugin.php14
1 files changed, 1 insertions, 13 deletions
diff --git a/phpBB/includes/captcha/plugins/phpbb_captcha_gd_plugin.php b/phpBB/includes/captcha/plugins/phpbb_captcha_gd_plugin.php
index 4ad34f2a26..c0c355f33b 100644
--- a/phpBB/includes/captcha/plugins/phpbb_captcha_gd_plugin.php
+++ b/phpBB/includes/captcha/plugins/phpbb_captcha_gd_plugin.php
@@ -57,19 +57,7 @@ class phpbb_captcha_gd extends phpbb_default_captcha
static public function is_available()
{
- global $phpbb_root_path, $phpEx;
-
- if (@extension_loaded('gd'))
- {
- return true;
- }
-
- if (!function_exists('can_load_dll'))
- {
- include($phpbb_root_path . 'includes/functions_install.' . $phpEx);
- }
-
- return can_load_dll('gd');
+ return @extension_loaded('gd');
}
/**