diff options
author | Renato Botelho <renato@netgate.com> | 2015-08-28 09:30:08 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-08-28 09:30:08 -0300 |
commit | 1bdbf0406b4c414b62ab7a02668efaf4a7555115 (patch) | |
tree | 681286ec638d22c5adc3979b9c7041b7813ca464 | |
parent | fc9a67bc0a0019f58b3daf32db1ffd09ac896407 (diff) | |
parent | 28bb42144df4a9001a8d988ed56f0f0672537706 (diff) | |
download | pfsense-1bdbf0406b4c414b62ab7a02668efaf4a7555115.zip pfsense-1bdbf0406b4c414b62ab7a02668efaf4a7555115.tar.gz |
Merge pull request #1825 from phil-davis/newer-release
-rw-r--r-- | src/usr/local/www/widgets/widgets/system_information.widget.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/usr/local/www/widgets/widgets/system_information.widget.php b/src/usr/local/www/widgets/widgets/system_information.widget.php index b40a6e9..06f29c8 100644 --- a/src/usr/local/www/widgets/widgets/system_information.widget.php +++ b/src/usr/local/www/widgets/widgets/system_information.widget.php @@ -71,13 +71,16 @@ if ($_REQUEST['getupdatestatus']) { echo "<br /><br />Unable to check for updates."; } else { $needs_system_upgrade = false; - if (pfs_version_compare($current_installed_buildtime, $g['product_version'], $remote_version) == -1) { + $version_compare = pfs_version_compare($current_installed_buildtime, $g['product_version'], $remote_version); + if ($version_compare == -1) { echo "<br /><span class=\"red\" id=\"updatealert\"><b>Update available. </b></span><a href=\"/system_firmware_check.php\">Click Here</a> to view update."; echo "\n<script type=\"text/javascript\">\n"; echo "//<![CDATA[\n"; echo "jQuery('#updatealert').effect('pulsate',{times: 30},10000);\n"; echo "//]]>\n"; echo "</script>\n"; + } elseif ($version_compare == 1) { + echo "<br />You are on a later version than the official release."; } else { echo "<br />You are on the latest version."; } |