From: <var...@us...> - 2012-11-21 13:32:55
|
Revision: 8514 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8514&view=rev Author: vargenau Date: 2012-11-21 13:32:44 +0000 (Wed, 21 Nov 2012) Log Message: ----------- Use version_compare Modified Paths: -------------- trunk/index.php Modified: trunk/index.php =================================================================== --- trunk/index.php 2012-11-21 13:31:52 UTC (rev 8513) +++ trunk/index.php 2012-11-21 13:32:44 UTC (rev 8514) @@ -32,8 +32,8 @@ 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.")); } //////////////////////////////////////////////////////////////// This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |