mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-23 05:11:52 +00:00
fix: d8d97b4f93
This commit is contained in:
parent
6d6a058b02
commit
2a025e9ec9
@ -59,7 +59,7 @@ if ($_POST['image_upload_file_submit'] == 'submit') {
|
||||
|
||||
list($width, $height, $type) = $size;
|
||||
$hash = hash_file("sha256", $_FILES['image_upload_file']['tmp_name']) . Auth::id();
|
||||
$scale = ceil($height / 600.0);
|
||||
$scale = ceil($width / 600.0);
|
||||
|
||||
$watermark_text = UOJConfig::$data['profile']['oj-name-short'];
|
||||
if (isSuperUser(Auth::user()) && $_POST['watermark'] == 'no_watermark') {
|
||||
|
Loading…
Reference in New Issue
Block a user