pass version to url checking for new versions

This commit is contained in:
Uwe Steinmann 2015-06-09 07:00:06 +02:00
parent 4a5c768385
commit d73052c362

View File

@ -32,7 +32,7 @@ if (!$user->isAdmin()) {
$v = new SeedDMS_Version;
$versions = array();
if(@ini_get('allow_url_fopen') == '1') {
$lines = @file('http://www.seeddms.org/latest', FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES);
$lines = @file('http://www.seeddms.org/latest?version='.$v->version(), FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES);
if($lines) {
foreach($lines as $line) {
$versions[] = explode(':', $line);