Update common.php

pull/4/head
qkqpttgf 2020-01-22 23:35:52 +08:00 committed by GitHub
parent c77ff0e28b
commit 3013647556
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 13 deletions

View File

@ -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;
}