浏览代码

Group em all

Signed-off-by: Suki <[email protected]>
Suki 10 年之前
父节点
当前提交
9a413aec1c
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. 2 5
      Sources/Subs-Themes.php

+ 2 - 5
Sources/Subs-Themes.php

@@ -514,14 +514,11 @@ function remove_theme($themeID)
 	$enable = strtr(implode(',', $enable), array(',,' => ','));
 
 	// Update the enableThemes list.
-	updateSettings(array('enableThemes' => $enable));
+	updateSettings(array('enableThemes' => $enable, 'knownThemes' => $known));
 
 	// Fix it if the theme was the overall default theme.
 	if ($modSettings['theme_guests'] == $themeID)
-		updateSettings(array('theme_guests' => '1', 'knownThemes' => $known));
-
-	else
-		updateSettings(array('knownThemes' => $known));
+		updateSettings(array('theme_guests' => '1'));
 
 	return true;
 }