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', "