mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-19 22:14:45 +02:00
Fix font dropdown on EditProfile Page (#1360)
This commit is contained in:
parent
30ae860d69
commit
1f8a5cdd1d
@ -383,12 +383,12 @@ class EditProfile extends BaseEditProfile
|
||||
'monospace' => 'monospace', //default
|
||||
];
|
||||
|
||||
if (!Storage::disk('public')->exists('storage/fonts')) {
|
||||
Storage::disk('public')->makeDirectory('storage/fonts');
|
||||
if (!Storage::disk('public')->exists('fonts')) {
|
||||
Storage::disk('public')->makeDirectory('fonts');
|
||||
$this->fillForm();
|
||||
}
|
||||
|
||||
foreach (Storage::disk('public')->allFiles('storage/fonts') as $file) {
|
||||
foreach (Storage::disk('public')->allFiles('fonts') as $file) {
|
||||
$fileInfo = pathinfo($file);
|
||||
|
||||
if ($fileInfo['extension'] === 'ttf') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user