From a6a62b863e01fe41bb4c949a19ab96acdd937fe3 Mon Sep 17 00:00:00 2001 From: Awilum Date: Wed, 9 Jan 2019 00:13:38 +0300 Subject: [PATCH] Admin Panel: Settings Manager - Select dropdown for themes - added. --- site/plugins/admin/classes/SettingsManager.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/site/plugins/admin/classes/SettingsManager.php b/site/plugins/admin/classes/SettingsManager.php index fcabbcbc..5e626770 100644 --- a/site/plugins/admin/classes/SettingsManager.php +++ b/site/plugins/admin/classes/SettingsManager.php @@ -74,11 +74,17 @@ class SettingsManager $entries[$entry['slug']] = $entry['title']; } + $themes = []; + + foreach (Filesystem::getDirList(PATH['themes']) as $theme) { + $themes[$theme] = $theme; + } + Themes::view('admin/views/templates/system/settings/list') ->assign('settings', Registry::get('settings')) ->assign('locales', $locales) ->assign('entries', $entries) - ->assign('themes', Filesystem::getDirList(PATH['themes'])) + ->assign('themes', $themes) ->display(); } }