From 783847996863727b0ffe39d4e7e8f26a44fd9b4c Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 24 Sep 2008 22:08:37 +0000 Subject: Closes #360: Will now install on 5.1.6 or greater with a warning, 5.2 with now warning. git-svn-id: https://code.elgg.org/elgg/trunk@2126 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/install.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'engine/lib') diff --git a/engine/lib/install.php b/engine/lib/install.php index c0ed7ab91..f4117b4e8 100644 --- a/engine/lib/install.php +++ b/engine/lib/install.php @@ -19,7 +19,13 @@ */ function php_check_version() { - if (version_compare(phpversion(), '5.2.0', '>=')) + if ( + (version_compare(phpversion(), '5.1.6', '>=')) && + (version_compare(phpversion(), '5.2.0', '<')) + ) + register_error(elgg_echo('configurationwarning:phpversion')); + + if (version_compare(phpversion(), '5.1.6', '>=')) return true; return false; -- cgit v1.2.3