Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
0c3df5fc
Commit
0c3df5fc
authored
Dec 31, 2013
by
webchick
Browse files
Issue
#2161955
by wiifm, dawehner, mikeytown2: HHVM compatibility .
parent
97dd7ca9
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/modules/system/lib/Drupal/system/Plugin/ImageToolkit/GDToolkit.php
View file @
0c3df5fc
...
...
@@ -326,13 +326,8 @@ public function createTmp(ImageInterface $image, $width, $height) {
* {@inheritdoc}
*/
public
static
function
isAvailable
()
{
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'
);
}
/**
...
...
core/modules/system/lib/Drupal/system/Tests/Image/ToolkitGdTest.php
View file @
0c3df5fc
...
...
@@ -44,14 +44,8 @@ public static function getInfo() {
}
protected
function
checkRequirements
()
{
$gd_available
=
FALSE
;
if
(
$check
=
get_extension_funcs
(
'gd'
))
{
if
(
in_array
(
'imagegd2'
,
$check
))
{
// GD2 support is available.
$gd_available
=
TRUE
;
}
}
if
(
!
$gd_available
)
{
// GD2 support is available.
if
(
!
function_exists
(
'imagegd2'
))
{
return
array
(
'Image manipulations for the GD toolkit cannot run because the GD toolkit is not available.'
,
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment