Fix version number detection
This commit is contained in:
parent
22bcaf0136
commit
3ada58fb7d
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user