1
0
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:
Awilum
2019-02-17 21:17:37 +03:00
parent 0e8c888570
commit 9ca1a428e9
2 changed files with 3 additions and 1 deletions

View File

@@ -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;
}

View File

@@ -37,7 +37,7 @@ class FieldsetsManager
'type' => 'text',
'size' => 'col-12'
]
]
]
])
)) {
Notification::set('success', __('admin_message_fieldset_created'));