From: Alexander Ebert Date: Mon, 23 May 2016 12:31:10 +0000 (+0200) Subject: GD extension is now a requirement X-Git-Tag: 2.1.11~18 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=20d167491862975fcd5bf4b8f9f9e18b6ccb41a8;p=GitHub%2FWoltLab%2FWCF.git GD extension is now a requirement All though stated as optional for a long time, it should have always been a requirement. The optionally supported ImageMagick extension does not offer replacement functions for core functions such as `getimagesize()` which is frequently used to determine images dimensions and type. This function (among others) aren't part of the PHP core, but instead belong to the GD extension itself. This change doesn't eliminate the ability to use ImageMagick to off-load heavy work, but instead ensures that GD is available due to being a crucial component. --- diff --git a/wcfsetup/setup/lang/setup_de.xml b/wcfsetup/setup/lang/setup_de.xml index 4adc5e8129..b2b76244fc 100644 --- a/wcfsetup/setup/lang/setup_de.xml +++ b/wcfsetup/setup/lang/setup_de.xml @@ -32,7 +32,8 @@ - + + diff --git a/wcfsetup/setup/lang/setup_en.xml b/wcfsetup/setup/lang/setup_en.xml index d537e50768..f2511d667f 100644 --- a/wcfsetup/setup/lang/setup_en.xml +++ b/wcfsetup/setup/lang/setup_en.xml @@ -32,7 +32,8 @@ - + + diff --git a/wcfsetup/setup/template/stepShowSystemRequirements.tpl b/wcfsetup/setup/template/stepShowSystemRequirements.tpl index f5309a44b3..33bc898352 100644 --- a/wcfsetup/setup/template/stepShowSystemRequirements.tpl +++ b/wcfsetup/setup/template/stepShowSystemRequirements.tpl @@ -40,6 +40,23 @@ + +
+ {lang}wcf.global.systemRequirements.gdLib{/lang} +
+
{lang}wcf.global.systemRequirements.element.required{/lang} 2.0.0
+
+ {lang}wcf.global.systemRequirements.element.yours{/lang} + {if !$system.gdLib.result} + {lang}wcf.global.systemRequirements.gdLib.notFound{/lang} + {else} + {$system.gdLib.value} + {/if} + + {if !$system.gdLib.result}{lang}wcf.global.systemRequirements.gdLib.description{/lang}{/if} +
+
+
@@ -57,22 +74,11 @@ - -
- {lang}wcf.global.systemRequirements.gdLib{/lang} -
-
{lang}wcf.global.systemRequirements.element.recommended{/lang} 2.0.0
-
- {lang}wcf.global.systemRequirements.element.yours{/lang} {$system.gdLib.value} - {if !$system.gdLib.result}{lang}wcf.global.systemRequirements.gdLib.description{/lang}{/if} -
-
-
- + diff --git a/wcfsetup/test.php b/wcfsetup/test.php index d805d901cd..faa32f23fe 100644 --- a/wcfsetup/test.php +++ b/wcfsetup/test.php @@ -91,6 +91,14 @@ else if (!extension_loaded('pcre')) { +

The 'GD' PHP extension is missing. GD is required for a stable work of this software.
+ Die 'GD' Erweiterung für PHP wurde nicht gefunden. Diese Erweiterung ist für den Betrieb der Software notwendig.

+