mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 00:34:44 +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
|
'monospace' => 'monospace', //default
|
||||||
];
|
];
|
||||||
|
|
||||||
if (!Storage::disk('public')->exists('storage/fonts')) {
|
if (!Storage::disk('public')->exists('fonts')) {
|
||||||
Storage::disk('public')->makeDirectory('storage/fonts');
|
Storage::disk('public')->makeDirectory('fonts');
|
||||||
$this->fillForm();
|
$this->fillForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (Storage::disk('public')->allFiles('storage/fonts') as $file) {
|
foreach (Storage::disk('public')->allFiles('fonts') as $file) {
|
||||||
$fileInfo = pathinfo($file);
|
$fileInfo = pathinfo($file);
|
||||||
|
|
||||||
if ($fileInfo['extension'] === 'ttf') {
|
if ($fileInfo['extension'] === 'ttf') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user