Fix version number detection

This commit is contained in:
Deon George 2009-07-22 00:01:20 +10:00
parent 22bcaf0136
commit 3ada58fb7d

View File

@ -218,7 +218,7 @@ function app_version() {
$version = trim(fread($f, filesize($version_file))); $version = trim(fread($f, filesize($version_file)));
fclose($f); fclose($f);
$CACHE = preg_replace('/^RELEASE-([0-9\.]+(-.*)+)$/','$1',$version); $CACHE = preg_replace('/^RELEASE-([0-9\.]+(-.*)*)$/','$1',$version);
# Check if we are a CVS copy. # Check if we are a CVS copy.
if (preg_match('/^$/',$CACHE)) if (preg_match('/^$/',$CACHE))