Skip to content

Commit

Permalink
allow more flexibility in version checking
Browse files Browse the repository at this point in the history
  • Loading branch information
markwatkinson committed Feb 26, 2012
1 parent ad89c77 commit 19872f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion versioncheck.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function _echo($string) {
. urlify($DOWNLOAD_URL) . ' to see what the latest version is'); . urlify($DOWNLOAD_URL) . ' to see what the latest version is');
} else { } else {
$data = json_decode($json, true); $data = json_decode($json, true);
if ($data['release_number'] === $version) { if ($data['release_number'] === $version || 'v' . $data['release_number'] === $version) {
_echo('You are up to date!'); _echo('You are up to date!');
} else { } else {
$output = "You are not up to date: your version is " . $version $output = "You are not up to date: your version is " . $version
Expand Down

0 comments on commit 19872f0

Please sign in to comment.