From bbb24c15e74293a856423505398545ba4b77e3df Mon Sep 17 00:00:00 2001 From: vargenau Date: Wed, 21 Nov 2012 13:32:44 +0000 Subject: [PATCH] Use version_compare git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@8514 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index c49247ff7..7a228727a 100644 --- a/index.php +++ b/index.php @@ -32,8 +32,8 @@ require_once (dirname(__FILE__) . '/lib/prepend.php'); require_once(dirname(__FILE__) . '/lib/IniConfig.php'); IniConfig(dirname(__FILE__) . "/config/config.ini"); -if (!check_php_version(5,2)) { - ExitWiki("PhpWiki " . PHPWIKI_VERSION . " requires at least PHP 5.2."); +if (version_compare(PHP_VERSION, '5.2', '<')) { + exit(_("Your PHP version is too old. You must have at least PHP 5.2.")); } //////////////////////////////////////////////////////////////// -- 2.45.0