From: Steven L. <st...@tu...> - 2004-11-11 21:20:48
|
I just wanted to let all third party module developers know that the next core version of phpwebsite will be going up to 0.10.0 What this means is that the old way of checking versions will no longer work and you encouraged to start using version_compare() Old core version check: if ($GLOBALS['core']->version < "0.9.3-2") { echo "You must upgrade to version 0.9.3-2 or greater to install this module."; } This should be updated to: if (version_compare($GLOBALS['core']->version, "0.9.3-2") < 0) { echo "You must upgrade to version 0.9.3-2 or greater to install this module."; } You should also start using version_compare() in your update.php files if you are going to follow the X.X.X version scheme. Thanks to rhalff and rizzo for their help with this issue. -- Steven Levin Computer Systems Admin I Electronic Student Services Appalachian State University http://phpwebsite.appstate.edu |