未验证 提交 6392416e 编写于 作者: Q qkqpttgf 提交者: GitHub

Update common.php

上级 b9562f16
......@@ -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];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册