]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix setupcheck for intl module 15223/head
authorDaniel Kesselberg <mail@danielkesselberg.de>
Sun, 21 Apr 2019 19:55:50 +0000 (21:55 +0200)
committerBackportbot <backportbot-noreply@rullzer.com>
Thu, 25 Apr 2019 06:11:22 +0000 (06:11 +0000)
A polyfill for intl is loaded very early (somewhere in base). Polyfill defines grapheme_strlen as function if
intl extension is not loaded. The check here is always true
because there is a function with that name.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
settings/Controller/CheckSetupController.php

index 5f355d0ec2fb3016812174e6a9a8422ea520bc34..f1da8406edb5fe3912e4ca95b9b9420cf6f823bc 100644 (file)
@@ -574,7 +574,7 @@ Raw output
        protected function hasRecommendedPHPModules(): array {
                $recommendedPHPModules = [];
 
-               if (!function_exists('grapheme_strlen')) {
+               if (!extension_loaded('intl')) {
                        $recommendedPHPModules[] = 'intl';
                }