Update common.php

pull/4/head
qkqpttgf 2020-01-18 21:15:38 +08:00 committed by GitHub
parent b9562f1603
commit 6392416e74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ function message($message, $title = 'Message', $statusCode = 200)
function needUpdate()
{
if ($_SERVER['admin']) {
$current_ver = file_get_contents(__DIR__ . '/version');
$current_ver = file_get_contents(__DIR__ . '/../version');
$current_ver = substr($current_ver, strpos($current_ver, '.')+1);
$current_ver = explode(urldecode('%0A'),$current_ver)[0];
$current_ver = explode(urldecode('%0D'),$current_ver)[0];