aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-24 22:08:37 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-24 22:08:37 +0000
commit783847996863727b0ffe39d4e7e8f26a44fd9b4c (patch)
tree1f96c604eace07af2b66ac883444d04a76dbd863 /engine
parent80f0b2465128e7fea78ef04f6b13e5d55b6ce3d2 (diff)
downloadelgg-783847996863727b0ffe39d4e7e8f26a44fd9b4c.tar.gz
elgg-783847996863727b0ffe39d4e7e8f26a44fd9b4c.tar.bz2
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
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/install.php8
1 files changed, 7 insertions, 1 deletions
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;