mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-03 10:30:51 +08:00
fix: theme switch service
This commit is contained in:
@@ -191,8 +191,12 @@ class ThemeService
|
||||
/**
|
||||
* 切换主题
|
||||
*/
|
||||
public function switch(string $theme): bool
|
||||
public function switch(string|null $theme): bool
|
||||
{
|
||||
if ($theme === null) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$currentTheme = admin_setting('current_theme');
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user