fix fatal error when ImageMagick is not found during installation
authormutec <mutec@users.noreply.github.com>
Sat, 5 Jan 2019 13:46:31 +0000 (14:46 +0100)
committerGitHub <noreply@github.com>
Sat, 5 Jan 2019 13:46:31 +0000 (14:46 +0100)
trying to show the found version fails since the version get's assigned only in case the extension was found

wcfsetup/setup/template/stepShowSystemRequirements.tpl

index 05609e746edcde873bf1a6d86ad96419a5bba4e0..3463496c6c54de6cd113d94be10702b20288628d 100644 (file)
                                <dl class="col-xs-12 col-md-6">
                                        <dt>{lang}wcf.global.systemRequirements.element.yours{/lang}</dt>
                                        <dd>
-                                               <span class="badge {if !$system.imagick.result}red{elseif !$system.imagick.supportsAnimatedGIFs}yellow{else}green{/if}">{$system.imagick.value}</span>
+                                               <span class="badge {if !$system.imagick.result}red{elseif !$system.imagick.supportsAnimatedGIFs}yellow{else}green{/if}">{if !$system.imagick.result}{lang}wcf.global.systemRequirements.notActive{/lang}{else}{$system.imagick.value}{/if}</span>
                                                {if !$system.imagick.result}<small>{lang}wcf.global.systemRequirements.imagick.description{/lang}</small>{/if}
                                        </dd>
                                </dl>