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:
@@ -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/');
|
||||
|
Reference in New Issue
Block a user