diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-12-13 12:36:48 +0100 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2017-12-13 17:20:48 +0100 |
commit | 7618473a443aaa42d06391a134525d51a6912f39 (patch) | |
tree | b2da3b6465abc70acc99f73538f35b4c1c0bd10e /settings | |
parent | 2943b54f98c53ded616ae9ab3ebe2c6b8e47f762 (diff) | |
download | nextcloud-server-7618473a443aaa42d06391a134525d51a6912f39.tar.gz nextcloud-server-7618473a443aaa42d06391a134525d51a6912f39.zip |
Add warning regarding freetype support
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'settings')
-rw-r--r-- | settings/Controller/CheckSetupController.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/settings/Controller/CheckSetupController.php b/settings/Controller/CheckSetupController.php index 5b7953bf392..06b9e80294b 100644 --- a/settings/Controller/CheckSetupController.php +++ b/settings/Controller/CheckSetupController.php @@ -410,6 +410,14 @@ Raw output } /** + * Check if the required FreeType functions are present + * @return bool + */ + protected function hasFreeTypeSupport() { + return function_exists('imagettfbbox') && function_exists('imagettftext'); + } + + /** * @return DataResponse */ public function check() { @@ -430,6 +438,7 @@ Raw output 'isOpcacheProperlySetup' => $this->isOpcacheProperlySetup(), 'phpOpcacheDocumentation' => $this->urlGenerator->linkToDocs('admin-php-opcache'), 'isSettimelimitAvailable' => $this->isSettimelimitAvailable(), + 'hasFreeTypeSupport' => $this->hasFreeTypeSupport(), ] ); } |