Update common.php
parent
b9562f1603
commit
6392416e74
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue