mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-06 05:16:05 -06:00
fixed uploaded error
This commit is contained in:
parent
b4512ef651
commit
09a033096f
@ -131,7 +131,7 @@ class UploadController extends AdminController
|
|||||||
$w = $image->width() / 2;
|
$w = $image->width() / 2;
|
||||||
$h1 = $image->height() / 2;
|
$h1 = $image->height() / 2;
|
||||||
$font_size = $w / 20;
|
$font_size = $w / 20;
|
||||||
$image->text(setting_value('visiosoft.module.advs::watermark_text','Openclassify'), $w, $h1, function ($font) use ($v, $h, $font_size) {
|
$image->text(($watermark_text = setting_value('visiosoft.module.advs::watermark_text')) ? $watermark_text : 'Openclassify', $w, $h1, function ($font) use ($v, $h, $font_size) {
|
||||||
$font->file(public_path('Antonio-Bold.ttf'));
|
$font->file(public_path('Antonio-Bold.ttf'));
|
||||||
$font->size($font_size);
|
$font->size($font_size);
|
||||||
$font->align($h);
|
$font->align($h);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user