]> source.dussan.org Git - nextcloud-server.git/commitdiff
we require php 5.3 now. so please notify the user if an old version is in use
authorFrank Karlitschek <frank@oc.(none)>
Mon, 30 Apr 2012 11:28:31 +0000 (13:28 +0200)
committerFrank Karlitschek <frank@oc.(none)>
Mon, 30 Apr 2012 11:28:31 +0000 (13:28 +0200)
lib/util.php

index b30b9dfd481ac07c1eec9dd1a14e35067303f453..2c05eb02599191b2098ec89a2c11f15fa7f33ed9 100644 (file)
@@ -243,6 +243,9 @@ class OC_Util {
                if(!function_exists('imagepng')){
                        $errors[]=array('error'=>'PHP module GD is not installed.<br/>','hint'=>'Please ask your server administrator to install the module.');
                }
+               if(floatval(phpversion())<5.3){
+                       $errors[]=array('error'=>'PHP 5.3 is required.<br/>','hint'=>'Please ask your server administrator to update PHP to version 5.3 or higher. PHP 5.2 is no longer supported by ownCloud and the PHP community.');
+               }
 
                return $errors;
        }