mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 21:51:32 +00:00
pass version to url checking for new versions
This commit is contained in:
parent
fb2e7dfe12
commit
15bb6177d8
|
@ -34,7 +34,7 @@ if (!$user->isAdmin()) {
|
||||||
$v = new SeedDMS_Version;
|
$v = new SeedDMS_Version;
|
||||||
$versions = array();
|
$versions = array();
|
||||||
if(@ini_get('allow_url_fopen') == '1') {
|
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) {
|
if($lines) {
|
||||||
foreach($lines as $line) {
|
foreach($lines as $line) {
|
||||||
$versions[] = explode(':', $line);
|
$versions[] = explode(':', $line);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user