mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-07 01:06:48 +02:00
[ticket/11183] Remove $load_extensions and weird dl() calls
PHPBB3-11183
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -46,19 +46,7 @@ class phpbb_captcha_gd_wave 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');
|
||||
}
|
||||
|
||||
static public function get_name()
|
||||
|
Reference in New Issue
Block a user