1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-24 13:52:56 +02:00

feat(admin-panel): show themes title instead of themes id's on settings page #187

This commit is contained in:
Awilum
2019-11-05 21:54:42 +03:00
parent 7f79b4ce91
commit 1c120dc581

View File

@@ -37,12 +37,8 @@ class SettingsController extends Controller
}
$themes = [];
foreach (Filesystem::listContents(PATH['themes']) as $theme) {
if ($theme['type'] !== 'dir' || ! Filesystem::has($theme['path'] . '/' . 'theme.yaml')) {
continue;
}
$themes[$theme['dirname']] = $theme['dirname'];
foreach ($this->registry->get('themes') as $theme) {
$themes[] = $theme['name'];
}
$available_locales = Filesystem::listContents(PATH['plugins'] . '/admin/lang/');