浏览代码

Allow admins to change a user's theme even if the option to change themes is disabled (fixes #1306)

Signed-off-by: Michael Eshom <[email protected]>
Michael Eshom 11 年之前
父节点
当前提交
a1729e3918
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Sources/Load.php

+ 1 - 1
Sources/Load.php

@@ -1433,7 +1433,7 @@ function loadTheme($id_theme = 0, $initialize = true)
 	elseif (!empty($_SESSION['id_theme']) && (!empty($modSettings['theme_allow']) || allowedTo('admin_forum')))
 		$id_theme = (int) $_SESSION['id_theme'];
 	// The theme is just the user's choice. (might use ?board=1;theme=0 to force board theme.)
-	elseif (!empty($user_info['theme']) && !isset($_REQUEST['theme']) && (!empty($modSettings['theme_allow']) || allowedTo('admin_forum')))
+	elseif (!empty($user_info['theme']) && !isset($_REQUEST['theme']))
 		$id_theme = $user_info['theme'];
 	// The theme was specified by the board.
 	elseif (!empty($board_info['theme']))