summaryrefslogtreecommitdiffstats
path: root/lib/util.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-04-09 12:22:55 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-04-09 12:22:55 +0200
commit16b513e4dc4fd65e77da7be37e99fb5c00656704 (patch)
tree1e4074642ff83f860df4d9715f7f3b2912e0f3bd /lib/util.php
parent5bb248efd6ad65ca812b5bfc16c42983bafda77c (diff)
downloadnextcloud-server-16b513e4dc4fd65e77da7be37e99fb5c00656704.tar.gz
nextcloud-server-16b513e4dc4fd65e77da7be37e99fb5c00656704.zip
added correct check for gd and check for php-intl
Diffstat (limited to 'lib/util.php')
-rwxr-xr-xlib/util.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index 37fb1bd9d06..348163d9a29 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -247,11 +247,16 @@ class OC_Util {
'hint'=>'Please ask your server administrator to install the module.');
$web_server_restart= false;
}
- if(!function_exists('imagepng')) {
+ if(!extension_loaded('gd') || !function_exists('gd_info')) {
$errors[]=array('error'=>'PHP module GD is not installed.',
'hint'=>'Please ask your server administrator to install the module.');
$web_server_restart= false;
}
+ if(!class_exists('Locale')) {
+ $errors[]=array('error'=>'PHP module intl is not installed.',
+ 'hint'=>'Please ask your server administrator to install the module.');
+ $web_server_restart= false;
+ }
if(!function_exists('gzencode')) {
$errors[]=array('error'=>'PHP module zlib is not installed.',
'hint'=>'Please ask your server administrator to install the module.');