mirror of
https://github.com/flextype/flextype.git
synced 2025-08-14 09:04:25 +02:00
Admin Panel: General - code cleanup and refactoring.
This commit is contained in:
@@ -58,6 +58,7 @@ class EntriesManager
|
||||
public static function getMediaList($entry, $path = false)
|
||||
{
|
||||
$files = [];
|
||||
|
||||
foreach (array_diff(scandir(PATH['entries'] . '/' . $entry), ['..', '.']) as $file) {
|
||||
if (strpos(Registry::get('settings.entries.media.accept_file_types'), $file_ext = substr(strrchr($file, '.'), 1)) !== false) {
|
||||
if (strpos($file, strtolower($file_ext), 1)) {
|
||||
@@ -69,6 +70,7 @@ class EntriesManager
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $files;
|
||||
}
|
||||
|
||||
|
@@ -37,7 +37,7 @@ class FieldsetsManager
|
||||
'type' => 'text',
|
||||
'size' => 'col-12'
|
||||
]
|
||||
]
|
||||
]
|
||||
])
|
||||
)) {
|
||||
Notification::set('success', __('admin_message_fieldset_created'));
|
||||
|
Reference in New Issue
Block a user