mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-23 19:37:35 +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');
|
$currentTheme = admin_setting('current_theme');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user