mirror of
https://github.com/renbaoshuo/UOJ-Luogu-RemoteJudge.git
synced 2024-11-23 19:38:42 +00:00
chore: hide php deprecated warning
This commit is contained in:
parent
2c0a24250f
commit
7b2a37d48c
@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);
|
||||
|
||||
$_SERVER['DOCUMENT_ROOT'] = dirname(__DIR__);
|
||||
|
||||
require $_SERVER['DOCUMENT_ROOT'] . '/app/libs/uoj-lib.php';
|
||||
|
@ -1,6 +1,11 @@
|
||||
--- UOJ-System/web/app/cli.php 2022-12-30 09:54:05.452022649 +0800
|
||||
+++ UOJ-Luogu-RemoteJudge/web/app/cli.php 2023-03-20 18:30:46.336676319 +0800
|
||||
@@ -4,7 +4,19 @@
|
||||
+++ UOJ-Luogu-RemoteJudge/web/app/cli.php 2023-03-20 18:44:11.532475876 +0800
|
||||
@@ -1,10 +1,24 @@
|
||||
<?php
|
||||
|
||||
+error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);
|
||||
+
|
||||
$_SERVER['DOCUMENT_ROOT'] = dirname(__DIR__);
|
||||
|
||||
require $_SERVER['DOCUMENT_ROOT'] . '/app/libs/uoj-lib.php';
|
||||
|
||||
@ -20,7 +25,7 @@
|
||||
|
||||
$handlers = [
|
||||
'upgrade:up' => function ($name) {
|
||||
@@ -61,7 +73,67 @@
|
||||
@@ -61,7 +75,67 @@
|
||||
});
|
||||
die("finished!\n");
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user