added theme support
This commit is contained in:
@@ -61,6 +61,9 @@ final class ThemePackageManager
|
||||
|
||||
public function uninstall(Theme $theme): void
|
||||
{
|
||||
if (in_array($theme->key(), ['sonardesk', 'sonardesk-admin'], true)) {
|
||||
throw new RuntimeException('Bundled SonarDesk themes cannot be uninstalled.');
|
||||
}
|
||||
$active = $theme->type() === 'frontend'
|
||||
? $this->settings->get('frontend_theme', config('stylist.default_frontend_theme'), 'site')
|
||||
: $this->settings->get('backend_theme', config('stylist.default_backend_theme'), 'site');
|
||||
|
||||
Reference in New Issue
Block a user