Update common.php
parent
c77ff0e28b
commit
3013647556
|
@ -244,7 +244,6 @@ function message($message, $title = 'Message', $statusCode = 200)
|
|||
|
||||
function needUpdate()
|
||||
{
|
||||
if ($_SERVER['admin']) {
|
||||
$current_ver = file_get_contents(__DIR__ . '/../version');
|
||||
$current_ver = substr($current_ver, strpos($current_ver, '.')+1);
|
||||
$current_ver = explode(urldecode('%0A'),$current_ver)[0];
|
||||
|
@ -257,7 +256,6 @@ function needUpdate()
|
|||
$_SERVER['github_version'] = $github_version;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue