Permalink
Browse files

allow more flexibility in version checking

  • Loading branch information...
1 parent ad89c77 commit 19872f08f7f737508420a0594419e1155d3c3ce6 @markwatkinson committed Feb 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 versioncheck.php
View
@@ -44,7 +44,7 @@ function _echo($string) {
. urlify($DOWNLOAD_URL) . ' to see what the latest version is');
} else {
$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!');
} else {
$output = "You are not up to date: your version is " . $version

0 comments on commit 19872f0

Please sign in to comment.