From db6b0ffdb43067f8edead80805036166907aea02 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Sun, 6 Nov 2022 13:21:04 +0800 Subject: [PATCH] fix: 61aebec03ec3328972276e33b2a19ba58b430bdc --- web/app/upgrade/14_sync_from_uoj.ac/upgrade.php | 2 +- web/install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/upgrade/14_sync_from_uoj.ac/upgrade.php b/web/app/upgrade/14_sync_from_uoj.ac/upgrade.php index 7d6b968..836c9ae 100644 --- a/web/app/upgrade/14_sync_from_uoj.ac/upgrade.php +++ b/web/app/upgrade/14_sync_from_uoj.ac/upgrade.php @@ -15,7 +15,7 @@ return function (string $type) { $extra['social']['codeforces'] = $user['codeforces_handle']; $extra['social']['github'] = $user['github']; $extra['social']['website'] = $user['website']; - $extra['image_hosting']['total_size_limit'] = $user['images_size_limit']; + $extra['image_hosting']['total_size_limit'] = (int)$user['images_size_limit']; DB::update([ "update user_info", diff --git a/web/install.sh b/web/install.sh index cb1c7f5..4f773f9 100644 --- a/web/install.sh +++ b/web/install.sh @@ -66,7 +66,7 @@ setWebConf(){ \$config['database']['host']='$_database_host_'; \$config['database']['password']='$_database_password_'; \$config['judger']['socket']['port']='$_judger_socket_port_'; -file_put_contents('/var/www/uoj/app/.config.php', "