diff --git a/function/common.php b/function/common.php index bf0429d..a0399f7 100644 --- a/function/common.php +++ b/function/common.php @@ -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];