Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Commit

Permalink
chore(Static File): Move fonts to public path
Browse files Browse the repository at this point in the history
move fonts from `apps\fonts` to `apps\public\static\fonts
  • Loading branch information
Rhilip committed Feb 7, 2019
1 parent 96e110e commit 7c61422
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/controllers/CaptchaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function actionIndex()
$captcha = new Captcha([
'width' => 150,
'height' => 40,
'fontFile' => app()->basePath . '/fonts/Times New Roman.ttf',
'fontFile' => app()->getPublicPath() . '/static/fonts/Times New Roman.ttf',
'fontSize' => 20,
'wordNumber' => 6,
'angleRand' => [-20, 20],
Expand Down

0 comments on commit 7c61422

Please sign in to comment.